Skip to content

Commit

Permalink
Show dotfiles if and only if GLOB_DOTS is set
Browse files Browse the repository at this point in the history
Resolves #384.
  • Loading branch information
marlonrichert committed Dec 13, 2021
1 parent 8736371 commit 18a9bfb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/.autocomplete.config
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ typeset -g ZLE_REMOVE_SUFFIX_CHARS=$' /;\n\r\t'
typeset -g ZLE_SPACE_SUFFIX_CHARS=$'|&<>-+'

.autocomplete.config.precmd() {
typeset -gHa _comp_options=( $_comp_options[@] globdots )
typeset -gH _comp_setup="$_comp_setup"$';\nlocal +h path=( $path[@] . )'
typeset -gH _comp_setup="$_comp_setup"';
[[ $_comp_caller_options[globdots] == yes ]] && setopt globdots;
local +h path=( $path[@] . )'

# Remove incompatible settings.
builtin zstyle -d ':completion:*:functions' ignored-patterns
Expand Down

0 comments on commit 18a9bfb

Please sign in to comment.