Skip to content

Commit

Permalink
Add troubleshooting section
Browse files Browse the repository at this point in the history
* Add suggestion for zsh missing bashcompinit command. Refs #33
  • Loading branch information
iridakos committed Mar 14, 2018
1 parent 9c6be35 commit f009f4d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f009f4d

Please sign in to comment.