my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
968 B

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