6 lines
182 B
Fish
6 lines
182 B
Fish
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
|