better psg (ps|grep)
This commit is contained in:
parent
cb690a6e3f
commit
31e09ae48a
1 changed files with 6 additions and 2 deletions
6
.bashrc
6
.bashrc
|
|
@ -127,7 +127,10 @@ bind '"\e[B": history-search-forward'
|
||||||
# Processes #
|
# Processes #
|
||||||
#############
|
#############
|
||||||
|
|
||||||
alias psg='ps aux|grep -v grep | grep -i --color=auto ' # grep a process
|
function psg() {
|
||||||
|
# do not show grep itself color matching string color the PID
|
||||||
|
ps aux | grep -v grep | grep --ignore-case --color=always $1 | colout '^\S+\s+([0-9]+).*$' blue
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
##########
|
##########
|
||||||
|
|
@ -232,3 +235,4 @@ source ~/.liquidprompt
|
||||||
# Added by autojump install.sh
|
# Added by autojump install.sh
|
||||||
#source /etc/profile.d/autojump.bash
|
#source /etc/profile.d/autojump.bash
|
||||||
|
|
||||||
|
export TCLLIBPATH=~/.local/share/tkthemes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue