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 8357 invoked from network); 31 Aug 2021 17:21:13 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 31 Aug 2021 17:21:13 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630430473; b=TBYCI5uCmr2zwyJVv6yR+LkrMKiKtD0Sems1YxGoB/vkaPPboNhU+BCLQpg2tUUd4c5z2csI4C Lyty86rvNApSjxkTGDXott+Kzx8GljhiC6iFmqApXnsbzM00oXfqAzMgbqREMmvCrtyhVBxz3Q Eji/uV7xf3mgDjpcgvFDCZBAiUyn1lEvwz0obn5wtZApWcpDBWsCyG8hNB3epdS1PPMoA00XM8 jWRms0SzyQQB0mpBW60ymsNw5+dET87LCikvNPLppTXqw0HbZlAx/NBhxvLBTSlcibbxfEFcl8 bbUmtV1DzxZ5KHw/mrfi7jSQtLnlCJgnCyaNAL1GxtJzdw==; 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=1630430473; bh=vn7RePKxlmtYWQDuWgHpEFUP1gJlVtexuPOYYMQt/cw=; 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=Whu09FUB6wa010Xu0MI7Nqh1TedhsM0v7Y275+SpF5W5OCXLoVyADdlg9vVQihGx+kbT4z79WJ rQ0pUaqGYSKbJGUzrN/nODOhWoTlgECvuD6IoUKA8T2RNVmPQAbB36PozThf6x2V6wRJ0RnLjR X++Id9Ru8lYbb50ZrHdefrN7RXfnOg4d+GLFoDgodloOrqIsQMSQ5aFQjv84ol0UjN86FYIR2+ iw9a4PFtiebOFFJHU+KBCa2aqAyo2rjLBoIzcrJwkFteBUmtajKfzcw2osSa6CGpcXh/8mnHa7 2dTDUXdLCgmhNgbZOUpMqhPFHVwR/e/P6N1HYUiDlqM91w==; 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=Cl4/DW1oZvN2dhlq+End0YHp+hT+YrmCZRc9oVbVNzg=; b=IhbzOIY8CNEx97nFQo64gZy7U7 7BRQluidq8ldSwziVc2QEtWMg4n4vRXXPcFFbnPUd3+FFprljGv8aQKBQwiE+VWJt72A8SWZgHvSm 33zGivMpRTwOB276IybXPNIXXrcHS36oal6IiV8C5c3O+ir79dZJeNpZl+YaL2J6JbRNP8FbXp8po XDNtodto9ewMX0IR7+/e9bby8irxxvORqW9oe3sB1WyhMqve23jK0WfV4MzkVMWcIcO8N5kUaVzrO vtVF+Q+T+kVTruOsGXyTMrFBe5uVoLWB41FWO24bywfCjqCaWQs7D+p06kf8zhBSIavKa7/jyeOIH a/Ktxoew==; Received: from authenticated user by zero.zsh.org with local id 1mL7Rh-0002jN-7D; Tue, 31 Aug 2021 17:21:13 +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]:38218) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mL7Qs-00021R-7P; Tue, 31 Aug 2021 17:20:22 +0000 Received: from email.dondley.com (email.dondley.com [34.203.132.18]) by email.dondley.com (Postfix) with ESMTPSA id C449F202EA; Tue, 31 Aug 2021 13:20:20 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dondley.com; s=default; t=1630430420; bh=vn7RePKxlmtYWQDuWgHpEFUP1gJlVtexuPOYYMQt/cw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YkfxCMheY78/k+fk+WjUeYIjL0XvAqy1eKUKN8UgtBOUqRA24w0MiwBJyEIB5r2xj HMx+hoU7UjP9vC9xpkqA5Zz7iJ0o+g/Tl4sIpwS16v9jZPD02C+GT2hjFi1yDnEV1I jOXbxbgbctdmv1f/dvC2S0W1KuWSQ4q8Q8OaSBUpF4Gz4AqDFArrhHbr5+GV1+T8zN Dp5dLUSec4fs7DwKYMwZ6IKaRJLmb8Rc6ywR8gYljceWz3BzJHlUDVpy1Bw7FW4AIi AeuR8D4wmwEUMsi9rOaeR53AK6EZrkwpr0ILp4Ux3LnCvFEMMAbfwqWtlXeCV7NWVB r0cqRlFG31eVg== MIME-Version: 1.0 Date: Tue, 31 Aug 2021 13:20:20 -0400 From: Steve Dondley To: zzapper Cc: zsh-users@zsh.org Subject: Re: Best practices for managing aliases in ohmyzsh? In-Reply-To: References: <41fa241f119fdb9b8598293aad345823@dondley.com> <49cded64-4563-18ef-dd53-1f21d4efb900@rayninfo.co.uk> User-Agent: Dondley Message-ID: <57b0b47ee25792a6cfff599c885d690c@dondley.com> X-Sender: s@dondley.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Seq: 27019 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: > > 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. I just discovered `fzf` is perfect for this because the zsh "alias" command will print out all aliases. So you can pipe that into fzf like so: Just do "alias | fzf" Now you can find any alias very easily and see what it does. Bam! If you don't have fzf, definitely consider installing it. It's amaze-balls.