fish: functions/topf: Add an alias for top
This commit is contained in:
parent
e29db6f236
commit
371794dfc7
1 changed files with 4 additions and 0 deletions
4
fish/.config/fish/functions/topf.fish
Normal file
4
fish/.config/fish/functions/topf.fish
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
function topf --description 'Select a process to run top'
|
||||||
|
set proc (ps -ef | fzf | awk '{print $2}')
|
||||||
|
top -H -p $proc
|
||||||
|
end
|
Loading…
Reference in a new issue