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

7 lines
167 B
Fish

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