zshrc: Move urldecode to its own file
authorFrank Terbeck <ft@bewatermyfriend.org>
Mon, 28 Nov 2011 21:21:34 +0000 (22:21 +0100)
committerMichael Prokop <mika@grml.org>
Tue, 6 Dec 2011 13:50:44 +0000 (14:50 +0100)
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
etc/zsh/zshrc
usr_share_grml/zsh/functions/urldecode [new file with mode: 0644]

index 024dbd0..6b30222 100644 (file)
@@ -3398,14 +3398,6 @@ allulimit() {
     ulimit -t unlimited
 }
 
-#f5# RFC 2396 URL encoding in Z-Shell
-urlencode() {
-    emulate -L zsh
-    setopt extendedglob
-    input=( ${(s::)1} )
-    print ${(j::)input/(#b)([^A-Za-z0-9_.!~*\'\(\)-])/%${(l:2::0:)$(([##16]#match))}}
-}
-
 # highlight important stuff in diff output, usage example: hg diff | hidiff
 #m# a2 hidiff \kbd{histring} oneliner for diffs
 check_com -c histring && \
diff --git a/usr_share_grml/zsh/functions/urldecode b/usr_share_grml/zsh/functions/urldecode
new file mode 100644 (file)
index 0000000..8bae53a
--- /dev/null
@@ -0,0 +1,6 @@
+#f5# RFC 2396 URL encoding in Z-Shell
+emulate -L zsh
+
+setopt extendedglob
+input=( ${(s::)1} )
+print ${(j::)input/(#b)([^A-Za-z0-9_.!~*\'\(\)-])/%${(l:2::0:)$(([##16]#match))}}