summaryrefslogtreecommitdiff
path: root/plugins/urltools
diff options
context:
space:
mode:
authorGarth Mortensen <voldemortensen@users.noreply.github.com>2018-09-11 12:22:55 -0600
committerMarc Cornellà <marc.cornella@live.com>2018-09-11 20:22:55 +0200
commit1487a2ad844bbdff24e1db1cfb086138f477c7e9 (patch)
tree739b5c98606a0b4781edf5bf36a4be47b3953ad2 /plugins/urltools
parentd4cae83152d17fd73514532d57fb75a878b651cc (diff)
downloadzsh-1487a2ad844bbdff24e1db1cfb086138f477c7e9.tar.gz
zsh-1487a2ad844bbdff24e1db1cfb086138f477c7e9.tar.bz2
zsh-1487a2ad844bbdff24e1db1cfb086138f477c7e9.zip
urltools: add readme (#7126)
Diffstat (limited to 'plugins/urltools')
-rw-r--r--plugins/urltools/README.md29
1 files changed, 29 insertions, 0 deletions
diff --git a/plugins/urltools/README.md b/plugins/urltools/README.md
new file mode 100644
index 000000000..548301c72
--- /dev/null
+++ b/plugins/urltools/README.md
@@ -0,0 +1,29 @@
+# URLTools plugin
+
+This plugin provides two aliases to URL-encode and URL-decode strings.
+
+To start using it, add the `urltools` plugin to your plugins array in `~/.zshrc`:
+
+```zsh
+plugins=(... urltools)
+```
+
+Original author: [Ian Chesal](https://github.com/ianchesal)
+Original idea and aliases: [Ruslan Spivak](https://ruslanspivak.wordpress.com/2010/06/02/urlencode-and-urldecode-from-a-command-line/)
+
+## Commands
+
+| Command | Description |
+| :---------- | :--------------------------- |
+| `urlencode` | URL-encodes the given string |
+| `urldecode` | URL-decodes the given string |
+
+## Examples
+
+```zsh
+urlencode 'https://github.com/robbyrussell/oh-my-zsh/search?q=urltools&type=Code'
+# returns https%3A%2F%2Fgithub.com%2Frobbyrussell%2Foh-my-zsh%2Fsearch%3Fq%3Durltools%26type%3DCode
+
+urldecode 'https%3A%2F%2Fgithub.com%2Frobbyrussell%2Foh-my-zsh%2Fsearch%3Fq%3Durltools%26type%3DCode'
+# returns https://github.com/robbyrussell/oh-my-zsh/search?q=urltools&type=Code
+```