X-Git-Url: https://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=etc%2Fzsh%2Fzshrc;h=01b36bc76bd27fc73ecf9eb4ac8fef0c4f2a8b80;hb=cadd20b527c410ce58ae7b7a96fc81bb60a8af12;hp=fa81477c36663e0125d22b4c0460e7c14be91216;hpb=baa1bccd1a77009a393ca2c258d51901ec289002;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index fa81477..01b36bc 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -3397,14 +3397,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 && \