@ -15,9 +15,9 @@ fi
fpath = ( " ${ 0 : h } /external/src " $fpath )
fpath = ( " ${ 0 : h } /external/src " $fpath )
# Add completion for keg-only brewed curl when available.
# Add completion for keg-only brewed curl when available.
if ( ( $+commands[ brew] && ! $+functions[ _curl] ) ) && \
if ( ( $+commands[ brew] && ! $+functions[ _curl] ) ) \
[ [ -d " ${ curl_prefix : : = " $( brew --prefix curl 2> /dev/null) " } " ] ] ; then
&& [ [ -d " ${ curl_prefix : : = " $( brew --prefix curl 2> /dev/null) " } " ] ] ; then
fpath = ( " ${ curl_prefix } /share/zsh/site-functions " $fpath )
fpath = ( " $ curl_prefix/share/zsh/site-functions " $fpath )
unset curl_prefix
unset curl_prefix
fi
fi
@ -35,6 +35,17 @@ setopt EXTENDED_GLOB # Needed for file modification glob modifiers with co
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.
#
# Variables
#
# Standard style used by default for 'list-colors'
LS_COLORS = " ${ LS_COLORS :- 'di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:' } "
#
# Initialization
#
# Load and initialize the completion system ignoring insecure directories with a
# Load and initialize the completion system ignoring insecure directories with a
# cache time of 20 hours, so it should almost always regenerate the first time a
# cache time of 20 hours, so it should almost always regenerate the first time a
# shell is opened each day.
# shell is opened each day.
@ -56,6 +67,10 @@ unset _comp_path
# Styles
# Styles
#
#
# Defaults.
zstyle ':completion:*:default' list-colors ${ (s. : .)LS_COLORS }
zstyle ':completion:*:default' list-prompt '%S%M matches%s'
# Use caching to make completion for commands such as dpkg and apt usable.
# Use caching to make completion for commands such as dpkg and apt usable.
zstyle ':completion::complete:*' use-cache on
zstyle ':completion::complete:*' use-cache on
zstyle ':completion::complete:*' cache-path " ${ XDG_CACHE_HOME :- $HOME /.cache } /prezto/zcompcache "
zstyle ':completion::complete:*' cache-path " ${ XDG_CACHE_HOME :- $HOME /.cache } /prezto/zcompcache "
@ -78,7 +93,6 @@ zstyle ':completion:*:corrections' format ' %F{green}-- %d (errors: %e) --%f'
zstyle ':completion:*:descriptions' format ' %F{yellow}-- %d --%f'
zstyle ':completion:*:descriptions' format ' %F{yellow}-- %d --%f'
zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f'
zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f'
zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f'
zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f'
zstyle ':completion:*:default' list-prompt '%S%M matches%s'
zstyle ':completion:*' format ' %F{yellow}-- %d --%f'
zstyle ':completion:*' format ' %F{yellow}-- %d --%f'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' group-name ''
zstyle ':completion:*' verbose yes
zstyle ':completion:*' verbose yes
@ -99,7 +113,6 @@ zstyle ':completion:*:functions' ignored-patterns '(_*|pre(cmd|exec))'
zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
# Directories
# Directories
zstyle ':completion:*:default' list-colors ${ (s. : .)LS_COLORS }
zstyle ':completion:*:*:cd:*' tag-order local-directories directory-stack path-directories
zstyle ':completion:*:*:cd:*' tag-order local-directories directory-stack path-directories
zstyle ':completion:*:*:cd:*:directory-stack' menu yes select
zstyle ':completion:*:*:cd:*:directory-stack' menu yes select
zstyle ':completion:*:-tilde-:*' group-order 'named-directories' 'path-directories' 'users' 'expand'
zstyle ':completion:*:-tilde-:*' group-order 'named-directories' 'path-directories' 'users' 'expand'