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
Don't set auto_name_dirs because it messes up prompts #3252
Don't set auto_name_dirs because it messes up prompts #3252
Conversation
From http://zsh.sourceforge.net/Doc/Release/Options.html#Completion-4 > AUTO_NAME_DIRS > Any parameter that is set to the absolute name of a directory immediately > becomes a name for that directory, that will be used by the ‘%~’ and > related prompt sequences, and will be available when completion is performed > on a word starting with ‘~’. > (Otherwise, the parameter must be used in the form ‘~param’ first.) Explained in more detail in rvm/rvm#3091 (comment) Related issues: ohmyzsh#2857 ohmyzsh#3238 rvm/rvm#3091
/cc @robbyrussell |
+1 -- (the AUTO_NAME_DIRS + rvm latest also breaks switching to same directory on new tab in OS X Terminal.app) |
@red56: what breaks switching, this PR or the |
Don't set auto_name_dirs because it messes up prompts
@mcornella the |
Ok, so this PR fixes that. Thank you for noticing and commenting here. Cheers!Marc |
@mcornella yes just verified that this PR fixes that. Thanks for fixing! |
i think this was also the cause of #3238 Thanks for finding and fixing this! :) |
Indeed it was, @clarkewd, as I explained in the issue in rvm's repo: rvm/rvm#3091 (comment).Marc |
Finally, +1 |
It should have been fixed according to this: ohmyzsh/ohmyzsh#3252 But I’m still seeing it.
Quick test:
Run in order:
afterwards, run:
setopt auto_name_dirs dir="$PWD"
Which should look like this:
From http://zsh.sourceforge.net/Doc/Release/Options.html#Completion-4
Explained in more detail in
rvm/rvm#3091 (comment)
Related issues:
#2857
#3238
rvm/rvm#3091
Fix #3238, close #3244.