diff options
Diffstat (limited to 'functions/fkill')
-rw-r--r-- | functions/fkill | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/functions/fkill b/functions/fkill new file mode 100644 index 0000000..799fdbe --- /dev/null +++ b/functions/fkill @@ -0,0 +1,7 @@ +local pid +pid=$(ps -ef | sed 1d | fzf -m | awk '{print $2}') + +if [ "x$pid" != "x" ] +then + echo $pid | xargs kill -${1:-9} +fi |