1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 17:28:01 +00:00

completion: Add note about keep zcompdump younger than cache time

This commit is contained in:
Indrajit Raychaudhuri 2021-04-30 17:49:32 -05:00 committed by Indrajit Raychaudhuri
parent 6a70bdfff2
commit f651140f2c

View File

@ -24,7 +24,7 @@ setopt PATH_DIRS # Perform path search even on command names with slas
setopt AUTO_MENU # Show completion menu on a successive tab press. setopt AUTO_MENU # Show completion menu on a successive tab press.
setopt AUTO_LIST # Automatically list choices on ambiguous completion. setopt AUTO_LIST # Automatically list choices on ambiguous completion.
setopt AUTO_PARAM_SLASH # If completed parameter is a directory, add a trailing slash. setopt AUTO_PARAM_SLASH # If completed parameter is a directory, add a trailing slash.
setopt EXTENDED_GLOB # Needed for file modification glob modifiers with compinit setopt EXTENDED_GLOB # Needed for file modification glob modifiers with compinit.
unsetopt MENU_COMPLETE # Do not autoselect the first completion entry. unsetopt MENU_COMPLETE # Do not autoselect the first completion entry.
unsetopt FLOW_CONTROL # Disable start/stop characters in shell editor. unsetopt FLOW_CONTROL # Disable start/stop characters in shell editor.
@ -40,6 +40,7 @@ if [[ $_comp_path(#qNmh-20) ]]; then
else else
mkdir -p "$_comp_path:h" mkdir -p "$_comp_path:h"
compinit -i -d "$_comp_path" compinit -i -d "$_comp_path"
# Keep $_comp_path younger than cache time even if it isn't regenerated.
touch "$_comp_path" touch "$_comp_path"
fi fi
unset _comp_path unset _comp_path