From c5cb72c5689c0b7d1e2cbf22fe74b27bde954f40 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Fri, 24 Sep 2021 19:43:16 +0100 Subject: [PATCH] Update psgrep function to include colour. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index f1da3ae..3040864 100644 --- a/.bashrc +++ b/.bashrc @@ -72,7 +72,7 @@ if [[ "$PLATFORM" = "Linux" ]]; then # Linux specific functions. psgrep() { - ps -auwwx | egrep "(RSS|$1)" | fgrep -v "(RSS|" + ps -auwwx | command egrep --color=always -- "(.*RSS.*|$1)" | fgrep -v "(.*RSS.*|" } elif [[ "$PLATFORM" = "Darwin" ]]; then # Darwin specific aliases.