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 4361 invoked from network); 31 Aug 2021 16:48:19 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 Aug 2021 16:48:19 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630428499; b=YJVmp5NHUiSDFrWwZJwsn3u2JnqayRuewhniZh0yIZmaooEXffXlJJENYWfpnxB6VsgHwufY2P W8aMKDf6x84cwOIV1CHiGa6ak5jtbGQtwEfggAn6QU82zpzSWOFY4CvOGhMsrkURZL4+P5OKAB jSjYU5qyxAX+bCFrE1m8/VDj48gev5YdaoO2v7Wxt+XvAet4d1IMkpT/h412nb7iA+GHd5CYO/ lljbw6Hg/zsNQy4hdxspKdnFORJA0cWOc5bXjpAu4NBfADHTp8nbqCyOIMCbdnT0DA0A3Vi8Vs TJfV8EOrltZ0ppWhuqxfJPB0SpSUXmuQHp5gzdKJbBesdA==; 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=1630428499; bh=bpRMMbq9ZCbJver59psFWrRI2IGD+PesuMEcoA9vLbo=; 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=ddBihss/+wDlvYCpDYKdGF7WHqu5UVnhvGX94pb0L8cXHAuZvFjnLA3yRbjPWY2jmMKtuuOrnK JwQ+ga5VZaLuoFAufYssFukVVWLLhRBmredbsRoogebgtlqPCCJwQyupnEvwsn7XprBvPmv5tR LqzRrBr29dexudnpwJI4AeGIIF0la1BsbcqgrWvjiKoMotth1ZM/vpvHUDF2SAEOQcQU7vnkUL wET8tl7DHl5lmlAnqbSZtpFV0voDQfXB5L4YaNoX4BzWgHIe/03R8zJ50Du4RzuaEphIhChuwT ZYZzAC22WMTC81KCR5B0ceVjbh4MW6AAGKrngsZZiDlj8A==; 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=RAxHptHPve8htbs2Uh9pU7P71Hc/LQUPqUDEcDuxoCU=; b=TwE2Zx+cdGSW4fWeoBKa1H/CYL LPqfwVMI64KbkFnX5H/aWBYv9oLkgGE0ldf50Slkp4eIEyJE6TK6B0TSEGfGhfCyxzjKWsjfs0iIr lJxsZAW7fxOGLYR2ux9lykGvEYTFB2Nhrw/tnZIV00NRFVu4CJ/t+FA9WEfU7cGlPPLpWOqbp8inb uGY9QD+a3ji3+Yep9e6guhjMqyABz6nPil0jzcbx0Aoebr6EaEwYsGjep2KARC/uJUxwq6Z+L+0u2 KZ+CCLi3xIJ5MkSvWENdEnzQG2sK60Y/jQia/As1ww5oG97m8u8/tEW12fm9YEhBe9SlPMWoxJAqa 4giKaG/A==; Received: from authenticated user by zero.zsh.org with local id 1mL6vr-0000DM-1A; Tue, 31 Aug 2021 16:48:19 +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]:37190) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mL6vB-000PWM-VL; Tue, 31 Aug 2021 16:47:38 +0000 Received: from email.dondley.com (email.dondley.com [34.203.132.18]) by email.dondley.com (Postfix) with ESMTPSA id 41EE5208E8; Tue, 31 Aug 2021 12:47:36 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dondley.com; s=default; t=1630428456; bh=bpRMMbq9ZCbJver59psFWrRI2IGD+PesuMEcoA9vLbo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=i8dJjlHy6LQvIz17Df7GnVmLXs4WOSEyU/Byf2uAkHyX3bRqZNUoYLtnJpCBmFNpP FHkxCTDm/Ug03pCk5N7SfUt8gvf+aPenORkpipZQDJRIK/SXw1zN29x+I5fm9+oveL RDqK1Ob4QV1e5WlcndV3y3CQWc/fQ6k6kqCvsKwwl6la2T2g9Yi0nhibTEp3LCntg8 ZFo3LMg4cICGTJEHXLgwbEDcobgsAQ+3XSJdMnkzwGniptc0pEA4zBVUJjXPittYI5 r+JcJEatfxM36nUHNrwfy7LaoP4x/m1jcVqfJXdqnxi92hfa7Y7vuxejrfxWn+Ux9N pL5kU+WrD1J5w== MIME-Version: 1.0 Date: Tue, 31 Aug 2021 12:47:33 -0400 From: Steve Dondley To: zzapper Cc: zsh-users@zsh.org Subject: Re: Best practices for managing aliases in ohmyzsh? In-Reply-To: <49cded64-4563-18ef-dd53-1f21d4efb900@rayninfo.co.uk> References: <41fa241f119fdb9b8598293aad345823@dondley.com> <49cded64-4563-18ef-dd53-1f21d4efb900@rayninfo.co.uk> User-Agent: Dondley Message-ID: X-Sender: s@dondley.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Seq: 27018 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: On 2021-08-31 12:24 PM, zzapper wrote: > On 30/08/2021 19:13, Steve Dondley wrote: >> >> >> 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? >> > dont know if this helps but I have 'group' aliases so if i type tmxa i > get > > > alias tmxa="alias -L 'tmx' 'tmxk' 'tmxn' 'tmxc'"  # list all my tmx > aliases > > > zzapper Thanks, I wasn't aware of the -L switch. Looks like it does something similar to the "type" command as in "type ". It would be nice if you could so something like alias -L "t*" and list all aliases but that doesn't seem to work. Weirdly, "type t*" works but that only lists functions that begin with "t". I don't see an option to print out aliases with a glob.