From de0a69ee110c0378caaf0d6c7984be7e5abdcb81 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 13 Dec 2021 15:14:16 +0530 Subject: [PATCH] fish: Add an alias to ps_mem --- fish/.config/fish/functions/psmem.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 fish/.config/fish/functions/psmem.fish diff --git a/fish/.config/fish/functions/psmem.fish b/fish/.config/fish/functions/psmem.fish new file mode 100644 index 0000000..1a9f5f0 --- /dev/null +++ b/fish/.config/fish/functions/psmem.fish @@ -0,0 +1,4 @@ +function psmem --description 'Show memory usage of a process' + set proc (ps -ef | fzf | awk '{print $2}') + ps_mem -p $proc +end