• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

README.mdH A D05-Mar-20201.2 KiB4833

hub.bash_completion.shH A D05-Mar-20209.8 KiB388320

hub.fish_completionH A D05-Mar-20207.2 KiB10195

hub.zsh_completionH A D05-Mar-20205.5 KiB175154

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