urltools.plugin.zsh 354 B

123456789
  1. # URL Tools
  2. # Adds handy command line aliases useful for dealing with URLs
  3. #
  4. # Taken from:
  5. # http://ruslanspivak.com/2010/06/02/urlencode-and-urldecode-from-a-command-line/
  6. alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1])"'
  7. alias urldecode='python -c "import sys, urllib as ul; print ul.unquote_plus(sys.argv[1])"'