more shortcuts for git and ps, and forgot typo

This commit is contained in:
Noah Masur committed 2020-11-25 12:16:43 -05:00
1 parent cee1ddbe06
commit 45fb7f7b9a
3 files changed
+22 -5

No files matched your search

Executable
+13
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