Permalink
Browse files

Bugfix: default rvm_cd_complete_flag to 0

  • Loading branch information...
1 parent aade040 commit 262c1720a28a3b681610eeda43a48169f11187c0 @wayneeseguin wayneeseguin committed Nov 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/cd
View
@@ -48,7 +48,7 @@ if [[ ${rvm_project_rvmrc:-1} -ne 0 ]] ; then
# This functionality is opt-in by setting rvm_cd_complete_flag=1 in ~/.rvmrc
# Generic bash cd completion seems to work great for most, so this is only
# for those that have some issues with that.
- if [[ ${rvm_cd_complete_flag} = 1 ]] ; then
+ if [[ ${rvm_cd_complete_flag:-0} = 1 ]] ; then
# If $CDPATH is set, bash should tab-complete based on directories in those paths,
# but with the cd function above, the built-in tab-complete ignores $CDPATH. This

0 comments on commit 262c172

Please sign in to comment.