From 478c397cd496c358ec9812465cfabc51d6d2deb8 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 8 Apr 2016 08:40:05 +0100 Subject: [PATCH] Attempt to install 'psgrep' but use an alias if not found. --- .Brewfile | 1 + .bashrc | 2 +- bin/software-install | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.Brewfile b/.Brewfile index d2bf8fa..e86d9af 100644 --- a/.Brewfile +++ b/.Brewfile @@ -7,6 +7,7 @@ brew "htop-osx" brew "mosh" brew "nmap" brew "p7zip" +brew "psgrep" brew "pv" brew "python3" brew "rename" diff --git a/.bashrc b/.bashrc index ccd7548..70ef8f5 100755 --- a/.bashrc +++ b/.bashrc @@ -115,7 +115,7 @@ export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a" #-------------------------------------------------------------------------------- alias ll='ls -l' [[ -x $(which htop 2>/dev/null) ]] && alias top='sudo htop' -alias psgrep='ps -ef | grep' +[[ -x $(which psgrep 2>/dev/null) ]] || alias psgrep='ps -ef | grep' alias datafart='curl --data-binary @- datafart.com' #-------------------------------------------------------------------------------- diff --git a/bin/software-install b/bin/software-install index 516bda9..950298f 100755 --- a/bin/software-install +++ b/bin/software-install @@ -23,6 +23,7 @@ function install_Linux_software { mosh nmap p7zip + psgrep pv ss vim