From 4e35f701ca30491518a32a42cad9a21a83388db2 Mon Sep 17 00:00:00 2001 From: Kyle Rich Date: Wed, 25 May 2016 17:31:11 -0600 Subject: [PATCH] Add "sa" alias to make it easy to search aliases --- modules/utility/README.md | 1 + modules/utility/init.zsh | 1 + 2 files changed, 2 insertions(+) diff --git a/modules/utility/README.md b/modules/utility/README.md index 5e7919ea..16b4317c 100644 --- a/modules/utility/README.md +++ b/modules/utility/README.md @@ -75,6 +75,7 @@ Aliases - `pu` changes the directory and pushes the old directory onto the stack (`pushd`). - `rm` removes files and directories interactively. + - `sa` search aliases for a word. - `type` displays all the attribute values of a shell parameter. ### Files and Directories diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index ca547cbf..961d917d 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -57,6 +57,7 @@ alias p='${(z)PAGER}' alias po='popd' alias pu='pushd' alias rm="${aliases[rm]:-rm} -i" +alias sa='alias | grep -i' alias type='type -a' # ls