Hello gurus of ZSH,
In my home directory, there are currently only hidden files/directories and the completion mechanism does not see them :-(
Few examples...
user@hostname [12:07:01]:~ % ls
No matches for: `files'
But if I manualy insert a dot :
user@hostname [12:27:06]:~ % ls .
--==[ files ]==--
.Maildir/ .Xdefaults .cache/ .config/ .cshrc .cvsrc .local/ .login .mailrc .nanorc .profile .ssh/ .zsh/
Same issue when I want to change of directory :
user@hostname [12:28:30]:~ % cd
No matches for: `local directory'
user@hostname [12:29:31]:~ % cd .
--==[ local directory ]==--
.Maildir/ .cache/ .config/ .local/ .ssh/ .zsh/
The completion does work fine with not hidden files/directories.
What is wrong with my file
"~/.zsh/completion"
?
Note : my machine runs OpenBSD v5.9 with zsh v5.8 ; I do not know if it matters.
#====================================================
zstyle ':completion:*:*:cd:*' tag-order local-directories path-directories
zstyle ':completion:*' menu select=2
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*:rm:*' ignore-line yes
zstyle ':completion:*:mv:*' ignore-line yes
zstyle ':completion:*:cp:*' ignore-line yes
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format '--==[ %U%B%d%b%u ]==--'
zstyle ':completion:*:messages' format '--==[ %d ]==--'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
zstyle ':completion:*' group-name ''
# Color completion.
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-colors 'di=01;34'
# Kill completion.
zstyle ':completion:*:processes' command 'ps -ax'
zstyle ':completion:*:processes-names' command 'ps -aeo comm='
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:*:killall:*:processes-names' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:*:killall:*' menu yes select
# Partial completion suggestions.
zstyle ':completion:*' list-suffixeszstyle ':completion:*' expand prefix suffix
# Persistent rehash.
zstyle ':completion:*' rehash true
# Create a cache.
zstyle ':completion:*' cache-path ${ZDOTDIR}/zsh_cache
zstyle ':completion:*' use-cache true #on
autoload -Uz compinit promptinit
compinit
promptinit
#====================================================
Second issue (less important) : the section "Create a cache" in the above file does not work.
Regards.