X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=57421185cf46e255770a8c486d8a52015794bae3;hb=1070e95c2e69a17540eb608b819d40f8ca5f37f4;hp=75ac0f69cae0642a04f6ffe3adc26f470f6c39a1;hpb=d3741cae8fbe2b2f7386c75f9d0881a91570b125;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 75ac0f6..5742118 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -244,9 +244,7 @@ fi autoload history-search-end # we don't want to quote/espace URLs on our own... - # avoid 'url-quote-magic: function definition file not found' on some older boxes - if [ -f "/usr/share/zsh/$ZSH_VERSION/functions/Zle/url-quote-magic" ] && \ - autoload -U url-quote-magic && zle -N self-insert url-quote-magic ; then + if autoload -U url-quote-magic ; then zle -N self-insert url-quote-magic else print 'Notice: no url-quote-magic available :(' @@ -414,7 +412,7 @@ fi # }}} # {{{ set prompt - if [ -f "/usr/share/zsh/$ZSH_VERSION/functions/Prompts/promptinit" ] && autoload promptinit && promptinit 2>/dev/null ; then + if autoload promptinit && promptinit 2>/dev/null ; then promptinit # people should be able to use their favourite prompt else print 'Notice: no promptinit available :('