Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
README.md | H A D | 05-Mar-2020 | 1.2 KiB | 48 | 33 | |
hub.bash_completion.sh | H A D | 05-Mar-2020 | 9.8 KiB | 388 | 320 | |
hub.fish_completion | H A D | 05-Mar-2020 | 7.2 KiB | 101 | 95 | |
hub.zsh_completion | H A D | 05-Mar-2020 | 5.5 KiB | 175 | 154 |
README.md
1# Installation instructions 2 3## Homebrew 4 5If you're using Homebrew, just run `brew install hub` and you should be all set 6with auto-completion. The extra steps to install hub completion scripts outlined 7below are *not needed*. 8 9For bash/zsh, a one-time setup might be needed to [enable completion for all 10Homebrew programs](https://docs.brew.sh/Shell-Completion). 11 12## bash 13 14Open your `.bashrc` file if you're on Linux, or your `.bash_profile` if you're on macOS and add: 15 16```sh 17if [ -f /path/to/hub.bash_completion ]; then 18 . /path/to/hub.bash_completion 19fi 20``` 21 22## zsh 23 24Copy the file `etc/hub.zsh_completion` from the location where you downloaded 25`hub` to the folder `~/.zsh/completions/` and rename it to `_hub`: 26 27```sh 28mkdir -p ~/.zsh/completions 29cp etc/hub.zsh_completion ~/.zsh/completions/_hub 30``` 31 32Then add the following lines to your `.zshrc` file: 33 34```sh 35fpath=(~/.zsh/completions $fpath) 36autoload -U compinit && compinit 37``` 38 39## fish 40 41Copy the file `etc/hub.fish_completion` from the location where you downloaded 42`hub` to the folder `~/.config/fish/completions/` and rename it to `hub.fish`: 43 44```sh 45mkdir -p ~/.config/fish/completions 46cp etc/hub.fish_completion ~/.config/fish/completions/hub.fish 47``` 48