Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Djuuu committed Apr 24, 2023
1 parent 6dfaf7c commit d6fbd91
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,23 @@ _OR_

#### Completion

Completion is available in `git-mr-completion.bash`. Source it in one of your shell startup scripts:
```bash
. "/path/to/git-mr/git-mr-completion.bash"
```
Completion functions for Bash and Zsh are available:

* **Bash**
Source `git-mr-completion.bash` in one of your shell startup scripts (`.bashrc` / `.bash_profile`):
```bash
. "/path/to/git-mr/git-mr-completion.bash"
```

* **Zsh**
Add the `completion` directory to your `fpath` (in your `.zshrc`, before any call to `compinit` or `oh-my-zsh.sh`)
```zsh
fpath=("~/path/to/git-mr/completion" $fpath)
```
You may have to force a rebuild of `zcompdump` by running:
```zsh
rm -f ~/.zcompdump; compinit
```

### Configuration

Expand Down

0 comments on commit d6fbd91

Please sign in to comment.