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

Add instructions for getting git completion in zsh #50

Merged
merged 1 commit into from
Jan 14, 2022
Merged
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: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ git config --file .git-together --add git-together.authors.nn 'Naomi Nagata; nna
git config --file .git-together --add git-together.authors.ca 'Chrisjen Avasarala; [email protected]'
```

For completion with zsh, you'll need to update your `.zshrc` to copy the existing completion rules
from the main git binary

```zsh
# initialize the compinit system if not already
autoload -U compinit
compinit

# tell zsh to use the completion setup for the git when using git-together
compdef git-together=git
```

## Usage

```bash
Expand Down