From: martin f. krafft Date: Fri, 22 May 2009 11:32:58 +0000 (+0200) Subject: add process inspection functions X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/471065f0aa290386a4f21f025fd0588f89691e64?ds=inline;hp=2da43e7f8590b45d7d29dec8f5d2997837bcd702 add process inspection functions --- diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases index 51be089..bdbef14 100644 --- a/.zsh/zshrc/30_aliases +++ b/.zsh/zshrc/30_aliases @@ -109,6 +109,11 @@ function lgrep() { alias px='ps afux' alias mps='ps -ao user,pcpu,start,command' +function of() { lsof -np "$1" } +compdef _pids of + +function psgrep() { ps aux | grep "[${1[1]}]${1[2,-1]}" } + alias bofh='fortune bofh-excuses' autoload -U baseconv