Add watch+ps alias

This commit is contained in:
gardouille 2023-05-09 15:59:09 +02:00
parent c1c64a82b5
commit ed05698f6b
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 5 additions and 0 deletions

5
zshrc
View File

@ -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'