From b4f78becc20c6e3010fe6a8c309d56b89258f8af Mon Sep 17 00:00:00 2001 From: Darren Austin Date: Mon, 15 May 2017 16:09:03 +0100 Subject: [PATCH] Added psgrep function --- .bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bashrc b/.bashrc index 37b29a0..13e1e5e 100644 --- a/.bashrc +++ b/.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'