diff options
author | Grégory DAVID <632571+groolot@users.noreply.github.com> | 2020-02-10 21:18:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-10 21:18:13 +0100 |
commit | d88fbe625f0a7c6f7296a58e0cd919903cd81511 (patch) | |
tree | 651ac8074288f9f395ef3537a00859a4180082f0 /plugins/systemadmin/systemadmin.plugin.zsh | |
parent | 1c300d3a76a786a83e8a70b7a399db94c8bcf5b7 (diff) | |
download | zsh-d88fbe625f0a7c6f7296a58e0cd919903cd81511.tar.gz zsh-d88fbe625f0a7c6f7296a58e0cd919903cd81511.tar.bz2 zsh-d88fbe625f0a7c6f7296a58e0cd919903cd81511.zip |
systemadmin: fix header line sorting in pscpu (#6167)
Inside `pscpu` and `pscpu10` aliases, remove sorting of the header line.
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 bdc2219fa..ded25c3a9 100644 --- a/plugins/systemadmin/systemadmin.plugin.zsh +++ b/plugins/systemadmin/systemadmin.plugin.zsh @@ -28,8 +28,8 @@ alias mkdir='mkdir -pv' alias psmem='ps -e -orss=,args= | sort -b -k1,1n' alias psmem10='ps -e -orss=,args= | sort -b -k1,1n| 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 -nr' -alias pscpu10='ps -e -o pcpu,cpu,nice,state,cputime,args|sort -k1 -nr | head -10' +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' # top10 of the history alias hist10='print -l ${(o)history%% *} | uniq -c | sort -nr | head -n 10' |