A zsh plugin for generating a GitHub short URL using git.io.
Inspired by tiny utility by Jorge Bucaran.
Add the following snippet ~/.zshrc
after the line antigen use oh-my-zsh
:
$ antigen bundle denysdovhan/gitio-zsh
Add the following line to your ~/.zshrc
where you're adding your other zsh plugins:
zgen load denysdovhan/gitio-zsh
If you don't use any plugin managers, follow these instructions:
- Clone this repository to your favorite path (e.g.
~/zsh-extensions/gitio-zsh
) source
the file in your.zshrc
- Restart your
zsh
# Your .zshrc
source $HOME/zsh-extensions/gitio-zsh/gitio.plugin.zsh
In git repo:
gitio
In other directory:
gitio <[https://github.com/]username/repo> [cool-url]