zsh:funcs:psgrep: Print column info

This commit is contained in:
2022-10-07 14:47:40 +02:00
parent 6a1537eda8
commit b398375020

View File

@@ -488,6 +488,9 @@ psgrep() {
# - Set EXTENDED_GLOB for the `b` globbing flag.
emulate -L zsh -o extendedglob
# print column info
ps u | head -1
for arg; do
# Substitute the captured first character with itself surrounded by
# brackets. The `(#b)` turns on backreferences, storing the match in the