dotfiles/fish/.config/fish/functions/pk.fish

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
167 B
Fish
Raw Permalink Normal View History

function pk --description 'Fuzzy find a process to kill'
set proc (ps -ef | fzf | awk '{print $2}')
if test -n "$proc"
kill -SIGKILL $proc
end
end