From 31ce056ca37a60a051aad21d9469dea3d72790bc Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Fri, 24 Sep 2021 19:41:21 +0100 Subject: [PATCH] Update psgrep function to add colour. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index d5c8fd4..03d3a8d 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.