Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions etc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@ Homebrew programs](https://docs.brew.sh/Shell-Completion).
Open your `.bashrc` file if you're on Linux, or your `.bash_profile` if you're on macOS and add:

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

Alternatively, to have completions dynamically loaded
(see the [bash-completion FAQ](https://github.com/scop/bash-completion#faq)):

```sh
cd ~/.local/share/bash-completion/completions/
ln -s /path/to/hub.bash_completion.sh hub.bash
```

## zsh

Copy the file `etc/hub.zsh_completion` from the location where you downloaded
Expand Down