|
|
|
@ -32,13 +32,16 @@ unsetopt FLOW_CONTROL # Disable start/stop characters in shell editor.
@@ -32,13 +32,16 @@ unsetopt FLOW_CONTROL # Disable start/stop characters in shell editor.
|
|
|
|
|
# cache time of 20 hours, so it should almost always regenerate the first time a |
|
|
|
|
# shell is opened each day. |
|
|
|
|
autoload -Uz compinit |
|
|
|
|
_comp_files=(${ZDOTDIR:-$HOME}/.zcompdump(Nm-20)) |
|
|
|
|
if (( $#_comp_files )); then |
|
|
|
|
compinit -i -C |
|
|
|
|
_comp_path="${XDG_CACHE_HOME:-$HOME/.cache}/prezto/zcompdump" |
|
|
|
|
# #q expands globs in conditional expressions |
|
|
|
|
if [[ $_comp_path(#qNmh-20) ]]; then |
|
|
|
|
# -C (skip function check) implies -i (skip security check). |
|
|
|
|
compinit -C -d "$_comp_path" |
|
|
|
|
else |
|
|
|
|
compinit -i |
|
|
|
|
mkdir -p "$_comp_path:h" |
|
|
|
|
compinit -i -d "$_comp_path" |
|
|
|
|
fi |
|
|
|
|
unset _comp_files |
|
|
|
|
unset _comp_path |
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
# Styles |
|
|
|
@ -46,7 +49,7 @@ unset _comp_files
@@ -46,7 +49,7 @@ unset _comp_files
|
|
|
|
|
|
|
|
|
|
# Use caching to make completion for commands such as dpkg and apt usable. |
|
|
|
|
zstyle ':completion::complete:*' use-cache on |
|
|
|
|
zstyle ':completion::complete:*' cache-path "${ZDOTDIR:-$HOME}/.zcompcache" |
|
|
|
|
zstyle ':completion::complete:*' cache-path "${XDG_CACHE_HOME:-$HOME/.cache}/prezto/zcompcache" |
|
|
|
|
|
|
|
|
|
# Case-insensitive (all), partial-word, and then substring completion. |
|
|
|
|
if zstyle -t ':prezto:module:completion:*' case-sensitive; then |
|
|
|
|