Update psgrep function to include colour.
This commit is contained in:
parent
0727ef9ece
commit
c5cb72c568
1 changed files with 1 additions and 1 deletions
2
.bashrc
2
.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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue