Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
d88fbe62
Unverified
Commit
d88fbe62
authored
Feb 10, 2020
by
Grégory DAVID
Committed by
GitHub
Feb 10, 2020
Browse files
systemadmin: fix header line sorting in pscpu (#6167)
Inside `pscpu` and `pscpu10` aliases, remove sorting of the header line.
parent
1c300d3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/systemadmin/systemadmin.plugin.zsh
View file @
d88fbe62
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment