projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drop the $ZSH_VERSION checks, the do not work for zsh-beta package
[grml-etc-core.git]
/
etc
/
zsh
/
zshrc
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
75ac0f6
..
5742118
100644
(file)
--- 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...
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 :('
zle -N self-insert url-quote-magic
else
print 'Notice: no url-quote-magic available :('
@@
-414,7
+412,7
@@
fi
# }}}
# {{{ set prompt
# }}}
# {{{ 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 :('
promptinit # people should be able to use their favourite prompt
else
print 'Notice: no promptinit available :('