dotfiles/fish/.config/fish/functions/pft.fish

5 lines
135 B
Fish
Raw Normal View History

function pft --description 'Select a process to run perf top'
2022-04-12 14:11:50 +02:00
set proc (ps -ef | fzf | awk '{print $2}')
perf top -p $proc
end