summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zsh/zshfunctions8
1 files changed, 2 insertions, 6 deletions
diff --git a/.zsh/zshfunctions b/.zsh/zshfunctions
index 8f8b0c8..9c62e30 100644
--- a/.zsh/zshfunctions
+++ b/.zsh/zshfunctions
@@ -31,18 +31,14 @@ zman() {
check_libs()
{
- local pmapc="
-[Fields Display]
-Mapping"
-
local libs found=0
for i in $(ps -A -o 'pid='); do
- libs=$(pmap -q -C<(<<<$pmapc) $i |
+ libs=$(pmap -q $i |
grep '(deleted)' |
grep -v '\<zero\>\|\[aio\]\|SYSV0\|\<drm\>' |
tr -s ' ' |
- cut -d' ' -f2 |
+ cut -d' ' -f4 |
sort -u)
if [[ -n $libs ]]; then