dotfiles/fish/.config/fish/functions/pst.fish

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

7 lines
182 B
Fish
Raw Permalink Normal View History

function pst --description 'Show process tree of a process'
set proc (ps -ef | fzf | awk '{print $2}' | head -1)
if test -n "$proc"
pstree -H $proc $proc
end
end