]> git.donarmstrong.com Git - zsh.git/commitdiff
add process inspection functions
authormartin f. krafft <madduck@madduck.net>
Fri, 22 May 2009 11:32:58 +0000 (13:32 +0200)
committermartin f. krafft <madduck@madduck.net>
Fri, 22 May 2009 11:32:58 +0000 (13:32 +0200)
.zsh/zshrc/30_aliases

index 51be089072c2d96b2890659d128369a33ab02213..bdbef14a77118d0501775f3dcb9998fc905ea62a 100644 (file)
@@ -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