/etc/zsh/zshrc: deactivate url-quote-magic by default and provide it as alias url...
authorMichael Prokop <mika@grml.org>
Sun, 15 Apr 2007 20:38:52 +0000 (22:38 +0200)
committerMichael Prokop <mika@grml.org>
Sun, 15 Apr 2007 20:38:52 +0000 (22:38 +0200)
debian/changelog
etc/zsh/zshrc

index b4fe5ed..44fc9d6 100644 (file)
@@ -1,3 +1,10 @@
+grml-etc-core (0.2.46) unstable; urgency=low
+
+  * /etc/zsh/zshrc: deactivate url-quote-magic by default and
+    provide it as alias url-quote instead.
+
+ -- Michael Prokop <mika@grml.org>  Sun, 15 Apr 2007 22:36:28 +0200
+
 grml-etc-core (0.2.45) unstable; urgency=low
 
   * /etc/zsh/zshrc: fix syntax error in get_twi_cl.
index 042ad28..1be98f4 100644 (file)
@@ -3,7 +3,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # Bug-Reports:   see http://grml.org/bugs/
 # License:       This file is licensed under the GPL v2.
-# Latest change: Sam Apr 14 11:01:58 CEST 2007 [mika]
+# Latest change: Son Apr 15 22:36:24 CEST 2007 [mika]
 ################################################################################
 # This file is sourced only for interactive shells. It
 # should contain commands to set up aliases, functions,
@@ -255,11 +255,12 @@ fi
   autoload history-search-end
 
   # we don't want to quote/espace URLs on our own...
-  if autoload -U url-quote-magic ; then
-     zle -N self-insert url-quote-magic
-  else
-     print 'Notice: no url-quote-magic available :('
-  fi
+  # if autoload -U url-quote-magic ; then
+  #    zle -N self-insert url-quote-magic
+  # else
+  #    print 'Notice: no url-quote-magic available :('
+  # fi
+  alias url-quote='autoload -U url-quote-magic ; zle -N self-insert url-quote-magic'
 
   alias run-help >&/dev/null && unalias run-help
   autoload run-help # use via 'esc-h'