From 381a0917c48ce419ececd3ed560bf42fb8422d07 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sat, 21 Mar 2020 23:41:23 +0100 Subject: initial commit of px --- px.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 px.sh (limited to 'px.sh') diff --git a/px.sh b/px.sh new file mode 100644 index 0000000..f389a0b --- /dev/null +++ b/px.sh @@ -0,0 +1,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" +} + -- cgit 1.4.1