Added psgrep function

This commit is contained in:
Darren 'Tadgy' Austin 2017-05-15 16:09:03 +01:00
commit b4f78becc2

View file

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