Update psgrep function to include colour.

This commit is contained in:
Darren 'Tadgy' Austin 2021-09-24 19:43:16 +01:00
commit c5cb72c568

View file

@ -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.