]> git.donarmstrong.com Git - zsh.git/blob - .zsh/func/urlencode
21e8ab7eb10a6796d96bd14dc0d0c3ac217eb4b6
[zsh.git] / .zsh / func / urlencode
1 # http://www.michael-prokop.at/computer/config/.zshrc
2 setopt localoptions extendedglob
3 input=( ${(s::)1} )
4 print ${(j::)input/(#b)([^A-Za-z0-9_.!~*\'\(\)-])/%$(([##16]#match))}