diff --git a/etc/README.md b/etc/README.md index 677aeda0b..71fe6d968 100644 --- a/etc/README.md +++ b/etc/README.md @@ -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