drop the $ZSH_VERSION checks, the do not work for zsh-beta package 0.2.23
authorMichael Prokop <mika@grml.org>
Sat, 24 Feb 2007 20:29:48 +0000 (21:29 +0100)
committerMichael Prokop <mika@grml.org>
Sat, 24 Feb 2007 20:29:48 +0000 (21:29 +0100)
debian/changelog
etc/zsh/zshrc

index 1d041da..5e6c7de 100644 (file)
@@ -6,6 +6,12 @@ grml-etc-core (0.2.23) unstable; urgency=low
     - add a space character in some abbreviation expansions
       so it's better readable.
     - added insert-unicode-char
+    - drop the check for
+      /usr/share/zsh/$ZSH_VERSION/functions/Prompts/promptinit and
+      /usr/share/zsh/$ZSH_VERSION/functions/Zle/url-quote-magic
+      because the check does not work for example with the zsh-beta
+      package. If you notice problems with the current code please
+      let me know.
   * /etc/skel/.zshrc:
     - added function ytdl (download video from youtube)
     - work around non utf8 capable software in utf environment
index 75ac0f6..5742118 100644 (file)
@@ -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 :('