From 371794dfc74b352653a1acdf22a30bd9d1328227 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Tue, 1 Feb 2022 11:54:55 +0530 Subject: [PATCH] fish: functions/topf: Add an alias for top --- fish/.config/fish/functions/topf.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 fish/.config/fish/functions/topf.fish diff --git a/fish/.config/fish/functions/topf.fish b/fish/.config/fish/functions/topf.fish new file mode 100644 index 0000000..10e8a34 --- /dev/null +++ b/fish/.config/fish/functions/topf.fish @@ -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