From 2f282fe51fc95ac3d564464b8456854573d702ab Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Wed, 27 Jan 2016 15:57:19 +0000 Subject: [PATCH] Ensure the htop check does not produce errors when not installed. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 9b2b016..eb468d9 100644 --- a/.bashrc +++ b/.bashrc @@ -71,7 +71,7 @@ export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a" # Command aliases #-------------------------------------------------------------------------------- alias ll='ls -l' -[[ -x $(which htop) ]] && alias top='htop' +[[ -x $(which htop 2>/dev/null) ]] && alias top='htop' alias gitx='open -a GitX .' #--------------------------------------------------------------------------------