Added psgrep function
This commit is contained in:
parent
544059e6c3
commit
b4f78becc2
1 changed files with 5 additions and 0 deletions
5
.bashrc
5
.bashrc
|
@ -42,6 +42,11 @@ if [ "$_PLATFORM" = "Linux" ]; then
|
|||
hash pine >/dev/null 2>&1 && alias pine='pine -p "{mail.open-source.co.uk/Service=IMAP/User=darren@afterdark.org.uk/TLS/NoValidate-Cert/NoRsh}.pinerc"'
|
||||
hash pinfo >/dev/null 2>&1 && alias info='pinfo'
|
||||
hash ping >/dev/null 2>&1 && alias ping='ping -b'
|
||||
|
||||
# Linux specific functions.
|
||||
psgrep() {
|
||||
ps -auwwx | egrep "(RSS|$1)"
|
||||
}
|
||||
elif [ "$_PLATFORM" = "Darwin" ]; then
|
||||
# Darwin specific aliases.
|
||||
hash df >/dev/null 2>&1 && alias df='df -P'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue