Skip to content

Commit

Permalink
fix: completions
Browse files Browse the repository at this point in the history
  • Loading branch information
snelling-a committed Aug 20, 2024
1 parent 962e64d commit 457600c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions shell/completion.zsh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/usr/bin/env zsh

if type brew &>/dev/null; then
export FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
export FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"

autoload -Uz compinit
compinit
autoload -Uz compinit
compinit
fi

setopt AUTO_LIST
Expand Down Expand Up @@ -39,9 +40,9 @@ zstyle ':completion:*' group-name ''
zstyle ':completion:*:*:-command-:*:*' group-order aliases builtins functions commands

expand-or-complete-with-dots() {
echo -n "\e[31m......\e[0m"
zle expand-or-complete
zle redisplay
echo -n "\e[31m......\e[0m"
zle expand-or-complete
zle redisplay
}
zle -N expand-or-complete-with-dots
bindkey "^I" expand-or-complete-with-dots
Expand Down

0 comments on commit 457600c

Please sign in to comment.