[zsh] add urlencode function

This commit is contained in:
Simon Bruder 2019-06-01 11:00:48 +00:00
parent fe9bde2bff
commit be6c0d6231
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -148,6 +148,10 @@ function currency() {
) )
} }
function urlencode() {
python3 -c 'import urllib.parse, sys;print(urllib.parse.quote(sys.stdin.read()))'
}
# Program aliases/env # Program aliases/env
## Aliases for programs ## Aliases for programs