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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
164 B
Fish
Raw Normal View History

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