diff options
author | Joshua Pratt <jp10010101010000@gmail.com> | 2020-10-11 23:17:21 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-11 14:17:21 +0200 |
commit | 1744277a68101916d51cda2c67951f5981f1f216 (patch) | |
tree | 6debe35b69fecf4af972151b60e3ae5fe9b1d000 /plugins/systemadmin/systemadmin.plugin.zsh | |
parent | fd512077018353faefd51036239bdba12981b40f (diff) | |
download | zsh-1744277a68101916d51cda2c67951f5981f1f216.tar.gz zsh-1744277a68101916d51cda2c67951f5981f1f216.tar.bz2 zsh-1744277a68101916d51cda2c67951f5981f1f216.zip |
systemadmin: correct sort order for psmem aliases (#6253)
Diffstat (limited to 'plugins/systemadmin/systemadmin.plugin.zsh')
-rw-r--r-- | plugins/systemadmin/systemadmin.plugin.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/systemadmin/systemadmin.plugin.zsh b/plugins/systemadmin/systemadmin.plugin.zsh index ded25c3a9..03064c035 100644 --- a/plugins/systemadmin/systemadmin.plugin.zsh +++ b/plugins/systemadmin/systemadmin.plugin.zsh @@ -25,8 +25,8 @@ alias clr='clear; echo Currently logged in on $TTY, as $USER in directory $PWD.' alias path='print -l $path' alias mkdir='mkdir -pv' # get top process eating memory -alias psmem='ps -e -orss=,args= | sort -b -k1,1n' -alias psmem10='ps -e -orss=,args= | sort -b -k1,1n| head -10' +alias psmem='ps -e -orss=,args= | sort -b -k1 -nr' +alias psmem10='ps -e -orss=,args= | sort -b -k1 -nr | head -10' # get top process eating cpu if not work try excute : export LC_ALL='C' alias pscpu='ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr' alias pscpu10='ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1,1n -nr | head -10' |