summary refs log tree commit diff
path: root/px.sh
blob: f389a0bcf72ede80a2ac90aa4d7a72a2792fb3f7 (plain) (blame)
1
2
3
4
5
6
7
px() {
  ps wwp ${$(pgrep -d, "${(j:|:)@}"):?no matches} \
         -o pid,user:6,%cpu,%mem,vsz:10,rss:10,bsdstart,etime:12,bsdtime,args |
    sed '1s/     \(VSZ\|RSS\)/\1/g' |
    numfmt --header --field 5,6 --from-unit=1024 --to=iec --format "%5f"
}