hub/etc
Heitor Tashiro Sergent 296f43a86c Add bash + homebrew section and bash_profile mention
Also removed instructions and references to set up git auto-completion.
2015-10-17 20:59:48 -05:00
..
README.md Add bash + homebrew section and bash_profile mention 2015-10-17 20:59:48 -05:00
hub.bash_completion.sh Add missing completions and docs for pull-request flags. 2015-08-06 16:21:43 -07:00
hub.zsh_completion Add missing completions and docs for pull-request flags. 2015-08-06 16:21:43 -07:00

README.md

Installation instructions

bash + Homebrew

If you're using Homebrew, just run brew install hub and you should be all set with auto-completion.

bash

Open your .bashrc file if you're on Linux, or your .bash_profile if you're on OS X and add:

if [ -f /path/to/hub.bash_completion ]; then
    . /path/to/hub.bash_completion
fi

zsh

Create a new folder for completions:

mkdir -p ~/.zsh/completions

Copy the file /etc/hub.zsh_completion from the location where you downloaded hub to the folder ~/.zsh/completions/ and rename it to _hub:

cp /path/to/etc/hub.zsh_completion ~/.zsh/completions/ \
    mv ~/.zsh/completions/hub.zsh_completion ~/.zsh/completions/_hub

Then add the following lines to your .zshrc file:

fpath=(~/.zsh/completions $fpath) 
autoload -U compinit && compinit