Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: nvcsformats not working on 5.2



On Oct 4,  4:00pm, Tobias Witt wrote:
}
} The problem is with the vcs_info module. I set nvcsformats like
} 
} zstyle ':vcs_info:*' nvcsformats "%~" ""
}
} which should make $vcs_info_msg_0_ return the current working
} directory after vcs_info is called.

This is working for me in current zsh revision pulled from git:

torch% setopt prompt_subst
torch% add-zsh-hook precmd vcs_info
torch% zstyle ':vcs_info:*' nvcsformats "%~" ""
torch% PS1='[%n] ${vcs_info_msg_0_}%# '
[schaefer] ~% cd zsh-5.0
[schaefer]  (cvs)-[zsh/zsh-5.0]-% cd /tmp
[schaefer] /tmp% 

I didn't try on MacOS, though.



Messages sorted by: Reverse Date, Date, Thread, Author