commit 4e82a41f13a98ec6c51c5788c8ae18a094d7c938 parent 9f599f0df3a1d4ff18f718fed087324b0fdf0e97 Author: Dash Eclipse <dash@ezup.dev> Date: Sun, 15 Nov 2020 20:23:24 +0000 Add ps_mem() Diffstat:
M | .zshrc.local | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/.zshrc.local b/.zshrc.local @@ -85,6 +85,12 @@ memu() { | GREP_COLORS='mt=0;33' egrep --color=always 'MB|MiB|$' \ | GREP_COLORS='mt=1;31' egrep --color=always "GB|GiB|$" } +ps_mem() { + doas ps_mem "$@" \ + | GREP_COLORS='mt=1;32' egrep --color=auto --color=always "KB|KiB|$" \ + | GREP_COLORS='mt=0;33' egrep --color=auto --color=always 'MB|MiB|$' \ + | GREP_COLORS='mt=1;31' egrep --color=auto --color=always "GB|GiB|$" +} # morse code, base64 mbt() {