Skip to content

Commit

Permalink
TASK: improved README on how to set up autocompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Heinze committed Feb 9, 2023
1 parent a452f12 commit 3a8df62
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,22 @@ run `brew upgrade sandstorm/tap/dev-script-runner` to upgrade

run `dev completion [bash|zsh|fish|powershell] --help` and follow instructions on how to set up autocompletion

> For **MacOS on ARM** the zsh instructions will not work. You have to add the
>
> `$(brew --prefix)/share/zsh/site-functions` to your `FPATH`
>
> before calling `autoload -U compinit; compinit`
> For **MacOS on ARM** the zsh instructions will not work. You have to change your `FPATH` first.
>
> ```bash
> FPATH=“$(brew --prefix)/share/zsh/site-functions:${FPATH}
> # .zshrc
>
> FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
> # compinit MUST be called afterwards!
> autoload -U compinit; compinit
> ```
> Now run
>
> ```
> dev completion zsh > $(brew --prefix)/share/zsh/site-functions/_dev
> ```
>
> and restart your terminal.
**Initialization**
Expand Down

0 comments on commit 3a8df62

Please sign in to comment.