urltools.plugin.zsh 329 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='node -e "console.log(encodeURIComponent(process.argv[1]))"'
  7. alias urldecode='node -e "console.log(decodeURIComponent(process.argv[1]))"'