Here's some awesome knowledge passed along from @bradleyfalzon.
If you add CDPATH to
~/.zshrc you can tab complete into those directories without typing the full path.
Very handy if you happen to run several vagrant instances or a verbose directory structure to mimic production.
typeset -U path cdpath fpath setopt auto_cd cdpath=($HOME/scripts /mnt) zstyle ':completion:*' group-name '' zstyle ':completion:*:descriptions' format %d zstyle ':completion:*:descriptions' format %B%d%b zstyle ':completion:*:complete:(cd|pushd):*' tag-order \ 'local-directories named-directories'
When tab completing a
cd you'll end up with something like this;
The same can be done is bash by adding the following to your