Skip to content

Commit

Permalink
Add notes on rvm_cd_complete_flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Aronoff authored and wayneeseguin committed Nov 16, 2010
1 parent b9d3ddd commit 1fba1f3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions content/support/troubleshooting.haml
Expand Up @@ -146,3 +146,31 @@
%pre.code
:preserve
PATH=/Users/wayne/.dbm/postgresql-8.4.0/bin:$PATH gem install pg --no-rdoc --no-ri

%a{:href => "#", :name => "cd-completion"}
%h2
I'm having trouble in Bash with tab completion of cd (and maybe $CDPATH)
%p
rvm hooks into cd in order to do per-directory checks for '.rvmrc' files. Tab
completion of directories should still work, but some people have reported
problems. If tab completion was working %em before
you installed rvm and now it's not, you can enable cd completion from within
rvm itself.
%p
Add the following to your ~/.bashrc or ~/.profile (~/.bash_profile) as
appropriate:
%pre.code
export rvm_cd_complete_flag=1
%p
If you have this problem, please report the details of your operating system,
$BASH_VERSION, the version of bash_completion you're using, etc. to #rvm on
Freenode or on Github. To be honest, the tab completion for cd in
bash_completion is far more robust than the code in rvm's cd function, and
%em should
still work with rvm. (In fact, it %em does
still work on OSX 10.6 with Bash 3.2 and Bash 4, on OpenBSD 4.7 with Bash
4 and on Debian 5.0.6 with Bash 3.2. All of those were tested with the
%a{:href => "http://bash-completion.alioth.debian.org/"} most up-to-date bash-completion
. If you don't have that, you may want to try it.)
Nevertheless, some people have reported problems, and the cd completion
inside rvm has helped them.

0 comments on commit 1fba1f3

Please sign in to comment.