Skip to content

Commit

Permalink
Merge pull request #46 from erikdw/enhance-zsh-docs
Browse files Browse the repository at this point in the history
document fix for 'command not found: add-zsh-hook'
  • Loading branch information
warrensbox authored Jun 7, 2019
2 parents 093f9fb + e3caed5 commit 4d404ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ load-tfswitch() {
add-zsh-hook chpwd load-tfswitch
load-tfswitch
```
> NOTE: if you see an error like this: `command not found: add-zsh-hook`, then you might be on an older version of zsh (see below), or you simply need to load `add-zsh-hook` by adding this to your `.zshrc`:
> ```
> autoload -U add-zsh-hook
> ```
*older version of zsh*
```
Expand All @@ -122,10 +126,3 @@ See how to *upgrade*, *uninstall*, *troubleshoot* here:[More info](https://warre
## Issues

Please open *issues* here: [New Issue](https://github.com/warrensbox/terraform-switcher/issues)







6 changes: 5 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ load-tfswitch() {
add-zsh-hook chpwd load-tfswitch
load-tfswitch
```
> NOTE: if you see an error like this: `command not found: add-zsh-hook`, then you might be on an older version of zsh (see below), or you simply need to load `add-zsh-hook` by adding this to your `.zshrc`:
> ```
> autoload -U add-zsh-hook
> ```
*older version of zsh*
```
Expand All @@ -117,4 +121,4 @@ Please open *issues* here: [New Issue](https://github.com/warrensbox/terraform-
<hr>

See how to *upgrade*, *uninstall*, *troubleshoot* here:
[Additional Info](additional)
[Additional Info](additional)

0 comments on commit 4d404ba

Please sign in to comment.