Skip to content

Commit

Permalink
Merge pull request #128 from jackwrfuller/fix/zsh-completions
Browse files Browse the repository at this point in the history
[Fix] Update Zsh completions and add Oh-My-Zsh plugin
  • Loading branch information
ocean authored Dec 16, 2024
2 parents edfd2ce + 204ef59 commit 62a310f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
docs/_build
# Ignore the ahoy binary when it's built
ahoy

.idea
builds/*

Expand Down
8 changes: 5 additions & 3 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ sudo wget -q https://github.com/ahoy-cli/ahoy/releases/download/1.1.0/ahoy-`unam
sudo wget -q https://github.com/ahoy-cli/ahoy/releases/download/2.0.0/ahoy-bin-`uname -s`-amd64 -O /usr/local/bin/ahoy && sudo chown $USER /usr/local/bin/ahoy && chmod +x /usr/local/bin/ahoy
```

### Bash / Zsh Completion
For Zsh, Just add this to your ~/.zshrc, and your completions will be relative to the directory you're in.
## Autocompletions

`complete -F "ahoy --generate-bash-completion" ahoy`
### Zsh
For Zsh completions, we have a standalone plugin available at [ahoy-cli/zsh-ahoy](https://github.com/ahoy-cli/zsh-ahoy).

### Bash

For Bash, you'll need to make sure you have bash-completion installed and setup. On OSX with homebrew it looks like this:

Expand Down

0 comments on commit 62a310f

Please sign in to comment.