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

5 lines
143 B
Fish
Raw Normal View History

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