dotfiles/fish/.config/fish/functions/topf.fish

7 lines
164 B
Fish

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