X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=a8b887a77bd4232e285fd9711f32df7db1d23801;hb=1e010be0f3a7365ee1539d0858ef36092a834869;hp=c1cc68d04d3a128dc15976e80c0930aa06e5df30;hpb=daaf5f50d7bf3664e7f482c5cf797db164db41ef;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index c1cc68d..a8b887a 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -1143,6 +1143,15 @@ fi if zrcautoload vcs_info; then GRML_VCS_INFO=0 + # `vcs_info' in zsh versions 4.3.10 and below have a broken `_realpath' + # function, which can cause a lot of trouble with our directory-based + # profiles. So: + if [[ ${ZSH_VERSION} == 4.3.<-10> ]] ; then + function VCS_INFO_realpath () { + setopt localoptions NO_shwordsplit chaselinks + ( builtin cd -q $1 2> /dev/null && pwd; ) + } + fi else # I'm not reindenting the whole code below. GRML_VCS_INFO=1