git.fiddlerwoaroof.com
scripts/pslist
a0d71cd9
 #!/bin/zsh
 
 # We have to supress less and grep for the pattern to work accurately
 if [[ $1 == "" ]]; then
   ps ax | egrep -v '(grep|pslist|less)' | less
f9d1298d
 elif [[ $2 == "" ]]; then
a0d71cd9
   ps ax | egrep -v '(grep|pslist|less)' | less -p $*
f9d1298d
 else
   opts=$1
   shift
   ps "ax$opts" | egrep -v '(grep|pslist|less)' | less -p $*
a0d71cd9
 fi