X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.shellrc;h=b6c98926e00b4d9aa8f9af5ec8f02d18ece36831;hb=e991ec16828b262c0e90677d6ba9f258d81b6b9c;hp=2ef0bdbe64b309e02c4e01991c4449379ebc725b;hpb=b39801c49aaef5aac95a2d8088833cedcbe14c68;p=dotfiles.git diff --git a/.shellrc b/.shellrc index 2ef0bdb..b6c9892 100644 --- a/.shellrc +++ b/.shellrc @@ -81,7 +81,7 @@ 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"`