1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-18 20:00:07 +00:00
ohmyzsh/plugins/urltools
2018-09-11 20:22:55 +02:00
..
README.md urltools: add readme (#7126) 2018-09-11 20:22:55 +02:00
urltools.plugin.zsh use https everywhere (#6574) 2018-08-07 20:42:01 +02:00

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:

plugins=(... urltools)

Original author: Ian Chesal Original idea and aliases: Ruslan Spivak

Commands

Command Description
urlencode URL-encodes the given string
urldecode URL-decodes the given string

Examples

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