Zsh Autocomplete – Configure Completion to Show Hidden Files and Folders

autocompletezsh

Currently when I invoke completion the behaviour is like this:

% cd ~/<TAB>
Completing directory
Desktop/    Downloads/  Pictures/   system/     Videos/
Documents/  Music/      Public/     Templates/  www/

How can I configure the completion to list the hidden files also?

Best Answer

You could add globdots to $_comp_options in your .zshrc e.g.

.....
compinit
_comp_options+=(globdots)
.....