about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--fish/.config/fish/functions/zombies.fish3
1 files changed, 3 insertions, 0 deletions
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