hub/etc
Mislav Marohnić 7467e49c90 Clarify documentation about what constitutes a title in `--message`
It's not only the first line of text; it's the entire first "block" (or
paragraph) of text with newlines turned into spaces. This is for
compatibility with git-commit(1).
2018-11-28 02:38:12 +01:00
..
README.md Touch up docs for shell completion scripts 2017-02-06 15:24:38 +01:00
hub.bash_completion.sh Ensure all custom commands are listed in docs and shell completions 2018-07-06 22:25:22 +02:00
hub.fish_completion Clarify documentation about what constitutes a title in `--message` 2018-11-28 02:38:12 +01:00
hub.zsh_completion Have `ci-status` also query Checks API 2018-07-07 14:37:41 +02: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 macOS and add:

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

zsh

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

mkdir -p ~/.zsh/completions
cp etc/hub.zsh_completion ~/.zsh/completions/_hub

Then add the following lines to your .zshrc file:

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

fish

Copy the file etc/hub.fish_completion from the location where you downloaded hub to the folder ~/.config/fish/completions/ and rename it to hub.fish:

mkdir -p ~/.config/fish/completions
cp etc/hub.fish_completion ~/.config/fish/completions/hub.fish