From 166eae6fd6d5598d429079b855c98bc2029e66aa Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 25 Jun 2019 00:52:54 -0400 Subject: [PATCH] add zombies function --- fish/.config/fish/functions/zombies.fish | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 fish/.config/fish/functions/zombies.fish diff --git a/fish/.config/fish/functions/zombies.fish b/fish/.config/fish/functions/zombies.fish new file mode 100644 index 0000000..f07b596 --- /dev/null +++ b/fish/.config/fish/functions/zombies.fish @@ -0,0 +1,3 @@ +function zombies + ps -A -ostat,ppid | awk '/[zZ]/ && !a[$2]++ {print $2}' +end