36e05e95adf6218eb8c154706a5a101b687d6368

Author
Marc Cornellà <marc.cornella@live.com>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

Don't set auto_name_dirs because it messes up prompts

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
https://github.com/wayneeseguin/rvm/issues/3091#issuecomment-60083194

Related issues:
https://github.com/robbyrussell/oh-my-zsh/issues/2857
https://github.com/robbyrussell/oh-my-zsh/issues/3238
https://github.com/wayneeseguin/rvm/issues/3091

Diff

 1diff --git a/lib/directories.zsh b/lib/directories.zsh
 2index 1896945f46948f68ec5e3d67b54e36429d42c910..02743e0c78130bb05f7150cd3ade0a14b98c7831 100644
 3--- a/lib/directories.zsh
 4+++ b/lib/directories.zsh
 5@@ -1,5 +1,4 @@
 6 # Changing/making/removing directory
 7-setopt auto_name_dirs
 8 setopt auto_pushd
 9 setopt pushd_ignore_dups
10 setopt pushdminus