From ed05698f6b760dd3acaaefef98ceb5dc3a7dd910 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 9 May 2023 15:59:09 +0200 Subject: [PATCH] Add watch+ps alias --- zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zshrc b/zshrc index 0b48c54..4a48a72 100644 --- a/zshrc +++ b/zshrc @@ -173,7 +173,12 @@ alias wotgobblemem='ps -o time,ppid,pid,nice,pcpu,pmem,user,comm -A | sort -n -k # ps aliases alias px='ps faux|grep -v grep|grep -iE -e VSZ -e ' +## ps with fzf alias fpx="ps -ef | fzf --bind 'ctrl-r:reload(ps -ef)' --header 'Press CTRL-R to reload' --header-lines=1 --color fg:188,bg:233,hl:103,fg+:222,bg+:234,hl+:104" +alias pxf="ps -ef | fzf --bind 'ctrl-r:reload(ps -ef)' --header 'Press CTRL-R to reload' --header-lines=1 --color fg:188,bg:233,hl:103,fg+:222,bg+:234,hl+:104" +## ps last entries with watch|tail|grep +alias wps="watch \"ps faux | tail --lines=30 -- | grep --invert-match --extended-regexp '(tail|ps faux|grep)' --\"" +alias psw="watch \"ps faux | tail --lines=30 -- | grep --invert-match --extended-regexp '(tail|ps faux|grep)' --\"" # Décompression alias untargz='tar -zxvf'