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