From: Oleg Broytman Date: Sat, 22 Nov 2014 03:26:16 +0000 (+0300) Subject: Justify commands to the longest one (pidOf) X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b39801c49aaef5aac95a2d8088833cedcbe14c68;p=dotfiles.git Justify commands to the longest one (pidOf) --- diff --git a/.shellrc b/.shellrc index e348ff2..2ef0bdb 100644 --- a/.shellrc +++ b/.shellrc @@ -75,8 +75,8 @@ esac #PWd() { pwd | sed "s/.*\/\(.*\)\/\(.*\)/...\/\2/"; } -psg() { ps auxw | grep -i ${1:+"$@"} | grep -v '\(ps auxw\|grep\)'; } -pswg() { ps auxwww | grep -i ${1:+"$@"} | grep -v '\(ps auxw\|grep\)'; } +psg() { ps auxw | grep -i ${1:+"$@"} | grep -v '\(ps auxw\|grep\)'; } +pswg() { ps auxwww | grep -i ${1:+"$@"} | grep -v '\(ps auxw\|grep\)'; } # Like pgrep -f pidOf() { ps auxwww | grep -i ${1:+"$@"} | grep -v '\(ps auxw\|grep\|pidOf\|KillAll\)' | awk '{print $2}'; }