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

5 lines
125 B
Fish

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