From be6c0d6231ac0d4a53d89b8e706184038578facb Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 1 Jun 2019 11:00:48 +0000 Subject: [PATCH] [zsh] add urlencode function --- home/.zshrc.local | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/.zshrc.local b/home/.zshrc.local index 71bfa23..f7f647f 100644 --- a/home/.zshrc.local +++ b/home/.zshrc.local @@ -148,6 +148,10 @@ function currency() { ) } +function urlencode() { + python3 -c 'import urllib.parse, sys;print(urllib.parse.quote(sys.stdin.read()))' +} + # Program aliases/env ## Aliases for programs