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