function topf --description 'Select a process to run top' set proc (ps -ef | fzf | awk '{print $2}') if test -n "$proc" top -H -p $proc end end