Skip to content

Commit

Permalink
[Bash] Don't die if advise isn't defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Feb 2, 2011
1 parent d5211cb commit c3c5bc2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bashrc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ fi
if [[ -s "$HOME/.rvm/scripts/rvm" ]]
then
source "$HOME/.rvm/scripts/rvm"
advise cd with-ls-and-rvm 'super "$@" && ls'
if type advise &> /dev/null; then
advise cd with-ls-and-rvm 'super "$@" && ls'
fi
if [ ! -z "$rvm_path" ]; then
mkdir -p "$rvm_path/tmp/$$"
fi
Expand Down

0 comments on commit c3c5bc2

Please sign in to comment.