From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16726 invoked from network); 30 Aug 2021 23:23:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 30 Aug 2021 23:23:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630365798; b=FMyBgsHY27/s9Bef47i1kKPjXGYJXDDsq9qFpV92Rct2MrHxgcX8qJ766xzVuf7J9UxDp8JyQk XNBe7+qM9Wv1AYIiCh1wGZY+gI+frXA3QIqE8lRlIWjv/Td45JnblH3NHFjPndiJi37FeCTX/R RT+ipKOr1Tu8hkWmxnHy3s9DDpoV/TutR8CJ09/5PvOp8gRXN6vVhBfRvjutr8Prl2wLwZ8fqD qlp3NuMREHP1rBCwti6cSYXexLxnz4SRgSKzG05ElMWCM+lR8zchULOi0I97zJUk06I56aw1vL f6dogQ+WCg5o9Y7dKASJvbrWbaW0WdvseP1pV4MBuIxtDw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1630365798; bh=EnxaKIbrtWH4/3aA46OV6DoYFnngjET6HO+jPm4KJ1k=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:DKIM-Signature: DKIM-Signature; b=Pl71uh1xGFsFPMr1MO2/lshOJFPc1hb36iq3lcD9MzHO2DmXIlZ+l3eQkrlwoClzj4JNG8BYK4 JVListkNSC9PMzDqlYBuDH3/MLKbo8e/5knXabJNl+/m8YiJ0D3y/YBHJ63IPGU7bNL5aHtfcQ uiHMmJKP6NFTBlW3ajy4AaQl8U0BLqwgXvi10ddVaGG3mUXmNVf4EoSbIkwtbCPf46FodT6RjV wMIrrGMZ9oXDNE4daqzZp3nS6uBfQw7GzRtkBdxH3asKeYyAqLCzW3l6IGTVRUaF1ofGwV7XSi NygD3Ox8uE9RtMAYAUQxBaPTXuYQHBdRJG9wyhGhCqUj/w==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=S3yG51r9QMK2q+Mf4lEb2GaJvwXGRZtcJb8+DNveHT4=; b=DZKwk0w7cyYQ4dx8UxpJOD6F8r 55QjyXPFcFBsrPV1PjKvdYAQdxqLqEXS9DTtH9YUPdS/bcXYuZ3FgRUg3i/vtt0Dc7xXpDtoIPkIl elqKiV6LomLKsadPpdL/bkhrQNweiafHPCnBsgxObSwPzReOWz76Arp2k5Pr628FEydRdtaXFlqGj NgkQEshPkGva872BGRotvqbAyuZzMn619wRjSi9Z932aGmytLUwOOjt9d/W6hRH9gZ7tTNBYOWj2n 7u3z7USY7E5PkB6cIeG08Q3mkuWyLCakQ7uKkfPFT3FtSO18jsQyxIdkhfkBp3IqEkiP3VJRj+4it NjR6+hmA==; Received: from authenticated user by zero.zsh.org with local id 1mKqcW-000En1-QT; Mon, 30 Aug 2021 23:23:16 +0000 Authentication-Results: zsh.org; iprev=pass (email.dondley.com) smtp.remote-ip=34.203.132.18; dkim=pass header.d=dondley.com header.s=default header.a=rsa-sha256; dmarc=pass header.from=dondley.com; arc=none Received: from email.dondley.com ([34.203.132.18]:41432) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mKqbj-000E59-0c; Mon, 30 Aug 2021 23:22:27 +0000 Received: from email.dondley.com (email.dondley.com [34.203.132.18]) by email.dondley.com (Postfix) with ESMTPSA id F2047202EA; Mon, 30 Aug 2021 19:22:24 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dondley.com; s=default; t=1630365745; bh=EnxaKIbrtWH4/3aA46OV6DoYFnngjET6HO+jPm4KJ1k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Z0wmxhfBJtGxzMvhBTT6tUL8tGP55PSDo5fQmLxABBNEgbfL9p1o23SeIRFlSZp0K 6s1jTD8ugEsPHgaWIiaEYou5fBj3Hd7u/1PadFNoZVbSrnmBVM3y6MUmNHa+Lc+c4u NSECUROrJrOnu/392Md4gw/M/wMSTRxpIsSVKeF/vMuc7Hg7Qh1XL8F/Kg+dxaRDWC M4qbarqFeAKzF0RkCroQmWAexaQ7EEfZmagJeCpDmJNC+EUbHcs9ORM8dtFd4VMJlS Ya1RKqUQALgvQBHNOfqYHDRZG4WwOsX2jRVsmitePjKq4ZV5i0xYRfvY91Fjed97hc Mm8mFciCNuRqA== MIME-Version: 1.0 Date: Mon, 30 Aug 2021 19:22:24 -0400 From: Steve Dondley To: Ray Andrews Cc: zsh-users@zsh.org Subject: Re: Best practices for managing aliases in ohmyzsh? In-Reply-To: References: <41fa241f119fdb9b8598293aad345823@dondley.com> User-Agent: Dondley Message-ID: <776abe09c579095258b2eef28a7ad5ca@dondley.com> X-Sender: s@dondley.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Seq: 27005 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: >> Now I'm wondering if there is some similar mechanism for adding >> aliases with ohmyzsh. If not, what's everyone else doing who has a >> couple hundred aliases. Are you just throwing them all into .zshrc or >> doing something to help manage all your aliases? > I'm the least qualified guy on the list, but I can tell you that you > can take advantage of all the built in complexities that zsh offers or > you can make it as dead simple as you desire.   Yes, I spent about 2 hours today figuring out how to get my old bash functions automatically loaded. Previously, I was just using 'source' to load the old bash files which, from what I gathered, is not the best way with zsh. I'm thinking there is probably a good tutorial out there for bash->zsh converts. i'll google around. If you know of any offhand, please let me know. > Me, I have just the > one automatically looked for file '.zshrc' in the home directory which > points to my 'real' zshrc which in turn loads all sorts of subsidiary Now you've got me wondering. While I was bumbling around today, I noticed I had an ~/.oh-my-zsh/.zshrc file. I'm only using the ~/.zshrc file, though. It has just one line: ZSH_THEME="powerlevel9k/powerlevel9k". I'm guessing that's the default because I don't remember editing it. So what is the "real" .zszhrc supposed to be? > files organized however one might desire, and yes one of them contains > all my aliases.   Just organize things as you wish. OK, thanks for the feedback.