]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/urltools/README.md
initial
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / urltools / README.md
1 # URLTools plugin
2
3 This plugin provides two aliases to URL-encode and URL-decode strings.
4
5 To start using it, add the `urltools` plugin to your plugins array in `~/.zshrc`:
6
7 ```zsh
8 plugins=(... urltools)
9 ```
10
11 Original author: [Ian Chesal](https://github.com/ianchesal)
12 Original idea and aliases: [Ruslan Spivak](https://ruslanspivak.wordpress.com/2010/06/02/urlencode-and-urldecode-from-a-command-line/)
13
14 ## Commands
15
16 | Command     | Description                  |
17 | :---------- | :--------------------------- |
18 | `urlencode` | URL-encodes the given string |
19 | `urldecode` | URL-decodes the given string |
20
21 ## Examples
22
23 ```zsh
24 urlencode 'https://github.com/ohmyzsh/ohmyzsh/search?q=urltools&type=Code'
25 # returns https%3A%2F%2Fgithub.com%2Fohmyzsh%2Fohmyzsh%2Fsearch%3Fq%3Durltools%26type%3DCode
26
27 urldecode 'https%3A%2F%2Fgithub.com%2Fohmyzsh%2Fohmyzsh%2Fsearch%3Fq%3Durltools%26type%3DCode'
28 # returns https://github.com/ohmyzsh/ohmyzsh/search?q=urltools&type=Code
29 ```