Update psgrep function to add colour.

This commit is contained in:
Darren 'Tadgy' Austin 2021-09-24 19:41:21 +01:00
commit 31ce056ca3

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.