Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note XDG completion convention #2755

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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