Skip to content

Commit

Permalink
Fix instructions for completion in Oh My Zsh (#881)
Browse files Browse the repository at this point in the history
* Fix instructions for completion in Oh My Zsh

* Use the $ZSH_CUSTOM environment variable

* Apply suggestions

* Updated link to OMZ repository

* title case in section title
  • Loading branch information
Stigjb authored Mar 16, 2021
1 parent 0934426 commit 7cc4e6c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions shell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,22 @@ and then add the directory to your `$fpath` in your `.zshrc`, `.zsh_profile` or
autoload -U compinit && compinit


#### Oh my Zsh
#### Oh My Zsh

If you are using the popular [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) framework to manage your zsh plugins, move the file `exercism_completion.zsh` into `~/.oh-my-zsh/custom`.
If you are using the popular [Oh My Zsh][oh-my-zsh] framework to manage your
zsh plugins, you need to move the file `exercism_completion.zsh` to a new
custom plugin:

[oh-my-zsh]: https://github.com/ohmyzsh/ohmyzsh

mkdir -p $ZSH_CUSTOM/plugins/exercism
cp exercism_completion.zsh $ZSH_CUSTOM/plugins/exercism/_exercism

Then edit the file `~/.zshrc` to include `exercism` in the list of plugins.
Completions will be activated the next time you open a new shell. If the
completions do not work, you should update Oh My Zsh to the latest version with
`omz update`. Oh My Zsh now checks whether the plugin list has changed (more
accurately, `$fpath`) and resets the `zcompdump` file.

### Fish

Expand Down

0 comments on commit 7cc4e6c

Please sign in to comment.