summaryrefslogtreecommitdiff
path: root/functions/fkill
blob: 799fdbec446692585935fcdf450d992e10edc8ef (plain)
1
2
3
4
5
6
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