-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tab completion of paths in CDPATH, fixes #1374 #1375
Conversation
I thought it was unset to fix something, but it should be also resotred after out of rvm, so the completion which is done in shell should work - so the bug might be not that we unset it - but rather that we do not restore it properly |
When you say tab completion is broken, is actually using CDPATH also broken? AFAIK cdpath is restored properly. |
are you using |
rvm_cd_complete_flag is set and the issue is still present. CDPATH appears to be restored properly (echoing CDPATH returns the correct value), using CDPATH (without tab completion) still works. |
Should avoid breaking tab completion in zsh. Update #1375
can you |
I was thinking more of |
Did an |
@Antonishen so can we close both tickets? |
@mpapis done and done! thanks for your help! |
You're right though @mpapis I hadn't seen that we exported a cd hook for bash. My fix just relies on the vague quirks in bash/zsh when you unset magic variables, for example |
ah ok, so I think we should replace all |
I just went with As soon as I |
my guess is we do not initialize rvm_stored_cdpath on every call, it's set only when rvm is loaded, @mtylty please open a new ticket (I can not reopen pull request) |
#1374