Skip to content

Commit

Permalink
Merge pull request ohmyzsh#1346 from ianchesal/urltools
Browse files Browse the repository at this point in the history
URL Tools Plugin
  • Loading branch information
robbyrussell committed Oct 9, 2012
2 parents 73f7770 + a97e117 commit 9ba2ab3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plugins/urltools/urltools.plugin.zsh
@@ -0,0 +1,9 @@
# URL Tools
# Adds handy command line aliases useful for dealing with URLs
#
# Taken from:
# http://ruslanspivak.com/2010/06/02/urlencode-and-urldecode-from-a-command-line/

alias urlencode='python -c "import sys, urllib as ul; print ul.quote_plus(sys.argv[1])"'

alias urldecode='python -c "import sys, urllib as ul; print ul.unquote_plus(sys.argv[1])"'

0 comments on commit 9ba2ab3

Please sign in to comment.