Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Bash] Don't die if advise isn't defined.

  • Loading branch information...
commit c3c5bc2b479c73e57fdfbf3a3b0e960cf21dbb1c 1 parent d5211cb
@nex3 authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 bashrc.sh
View
4 bashrc.sh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.