Add new aliases to manage process, history, disk usage and grep.
This commit is contained in:
parent
66911a6ce0
commit
45c99f553c
9
zshrc
9
zshrc
|
@ -103,7 +103,8 @@ fi
|
|||
|
||||
# Espace disque
|
||||
alias df='df -kTh'
|
||||
alias dus='du * -sh'
|
||||
alias dus='du -ch|sort -h'
|
||||
alias dua='du -ach|sort -h'
|
||||
|
||||
# Gestion des processus:
|
||||
# Si htop n'est pas installé sur la machine:
|
||||
|
@ -114,6 +115,9 @@ fi
|
|||
# Qu'est-ce qui consomme de la mémoire vive sur le système
|
||||
alias wotgobblemem='ps -o time,ppid,pid,nice,pcpu,pmem,user,comm -A | sort -n -k 6 | tail -15'
|
||||
|
||||
# Afficher uniquement le processus à partir de ps
|
||||
alias px='ps faux|grep -v grep|grep -i -e VSZ -e'
|
||||
|
||||
|
||||
# Décompression
|
||||
alias untargz='tar -zxvf'
|
||||
|
@ -152,7 +156,7 @@ alias purge='grep-status -n -sPackage -FStatus config-files'
|
|||
## Alias avec pipe
|
||||
alias -g H='| head'
|
||||
alias -g T='tail -f'
|
||||
alias -g G='| grep'
|
||||
alias -g G='| grep -v grep | grep'
|
||||
alias -g L='| less'
|
||||
alias -g M="| most"
|
||||
alias -g B="&|"
|
||||
|
@ -174,6 +178,7 @@ else
|
|||
alias hist="fc -El 0 | less +G"
|
||||
#alias hist="less +G ~/.zsh/history"
|
||||
fi
|
||||
alias ghist='fc -El 0 | grep'
|
||||
|
||||
## Gestion des répertoires
|
||||
alias u='cd ..'
|
||||
|
|
Loading…
Reference in New Issue