more shortcuts for git and ps, and forgot typo

This commit is contained in:
Noah Masur
2020-11-25 12:14:44 -05:00
parent cee1ddbe06
commit 45fb7f7b9a
3 changed files with 22 additions and 5 deletions

13
bin/nuke Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
nuke() {
local pid
pid=$(ps -ef | grep -v ^root | sed 1d | fzf -m | awk '{print $2}')
if [ "x$pid" != "x" ]
then
echo $pid | xargs kill -${1:-9}
fi
}
nuke