Attempt to install 'psgrep' but use an alias if not found.

This commit is contained in:
Scott Wallace 2016-04-08 08:40:05 +01:00
parent 6dea6758a4
commit 478c397cd4
3 changed files with 3 additions and 1 deletions

View file

@ -7,6 +7,7 @@ brew "htop-osx"
brew "mosh" brew "mosh"
brew "nmap" brew "nmap"
brew "p7zip" brew "p7zip"
brew "psgrep"
brew "pv" brew "pv"
brew "python3" brew "python3"
brew "rename" brew "rename"

View file

@ -115,7 +115,7 @@ export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a"
#-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------
alias ll='ls -l' alias ll='ls -l'
[[ -x $(which htop 2>/dev/null) ]] && alias top='sudo htop' [[ -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' alias datafart='curl --data-binary @- datafart.com'
#-------------------------------------------------------------------------------- #--------------------------------------------------------------------------------

View file

@ -23,6 +23,7 @@ function install_Linux_software {
mosh mosh
nmap nmap
p7zip p7zip
psgrep
pv pv
ss ss
vim vim