From 8eb97d0c3fb6c7e8c2222743aa605ac5583f2295 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Wed, 3 Jul 2019 18:11:49 +0100 Subject: [PATCH] Make the psgrep function ignore the results of itself. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 255a23b..42fd923 100644 --- a/.bashrc +++ b/.bashrc @@ -225,7 +225,7 @@ if [[ "$_PLATFORM" = "Linux" ]]; then # Linux specific functions. psgrep() { - ps -auwwx | egrep "(RSS|$1)" + ps -auwwx | egrep "(RSS|$1)" | fgrep -v "(RSS|" } elif [[ "$_PLATFORM" = "Darwin" ]]; then # Darwin specific aliases.