diff --git a/configs/zsh/macros.sh b/configs/zsh/macros.sh index 82b8706..41869fc 100644 --- a/configs/zsh/macros.sh +++ b/configs/zsh/macros.sh @@ -158,3 +158,12 @@ wg-cat() { sudo cat /etc/wireguard/$1.conf fi } + +# Search for a process +proc-grep() { + if [ $# != 1 ]; then + echo "Usage: proc-grep " + else + ps aux | { head -1; grep $1 } + fi +}