Add troubleshooting section

* Add suggestion for zsh missing bashcompinit command. Refs #33
This commit is contained in:
Lazarus Lazaridis 2018-03-15 00:23:56 +02:00
parent 9c6be35e87
commit f009f4dafc

View File

@ -60,6 +60,9 @@ source ~/goto.sh
* [Extras](#extras)
* [Push before changing directories](#push-before-changing-directories)
* [Revert to a pushed directory](#revert-to-a-pushed-directory)
* [Troubleshooting](#troubleshooting)
* [zsh](#zsh)
* [command not found compdef](#command-not-found-compdef)
### Change to an aliased directory
To change to an aliased directory, type:
@ -215,6 +218,18 @@ goto --pop
This command is equivalent to `popd`, but within the `goto` command.
## Troubleshooting
### zsh
#### command not found: compdef
In case you get such an error, you need to load the `bashcompinit`. Append this to your `.zshrc` file:
```bash
autoload bashcompinit
bashcompinit
```
## TODO
* ~~Test on macOS~~ extensively