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.