X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fzsh%2Fzshrc;h=57c10eefad2e9be15c7f0aab838824773994b4ae;hb=refs%2Ftags%2Fv0.3.88;hp=c1cc68d04d3a128dc15976e80c0930aa06e5df30;hpb=daaf5f50d7bf3664e7f482c5cf797db164db41ef;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index c1cc68d..57c10ee 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -635,6 +635,10 @@ zle -N slash-backward-kill-word #k# Kill everything in a word up to its last \kbd{/} bindkey '\ev' slash-backward-kill-word +#k# Kill everything in a word up to its last \kbd{/} +bindkey '\e^h' slash-backward-kill-word +#k# Kill everything in a word up to its last \kbd{/} +bindkey '\e^?' slash-backward-kill-word # use the new *-pattern-* widgets for incremental history search if is439 ; then @@ -1143,6 +1147,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