X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.shellrc;h=b6c98926e00b4d9aa8f9af5ec8f02d18ece36831;hb=0527307972c23e2577b9bcb9129e6099ca60a32f;hp=e348ff2e60ba6887f7c2734f8971ebbfb82d994f;hpb=50c68a6eb7312765ff12aa7d8c17e664fac98755;p=dotfiles.git diff --git a/.shellrc b/.shellrc index e348ff2..b6c9892 100644 --- a/.shellrc +++ b/.shellrc @@ -75,13 +75,13 @@ 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}'; } -# A kind of pkill +# A kind of pkill/killall KillAll() { if [ -z "$2" ]; then kill `pidOf "$1"`