summaryrefslogtreecommitdiff
path: root/.config/zsh/completion.zsh
diff options
context:
space:
mode:
authorBrahmajit Das <listout@listout.xyz>2025-10-09 00:50:26 +0000
committerBrahmajit Das <listout@listout.xyz>2025-10-09 00:50:26 +0000
commitb142bdd3d613289564a73807725bf07650c13ff1 (patch)
tree4eb36972f8fc2ab8f9fd8364599c318e4c0fd17c /.config/zsh/completion.zsh
parentfa932312855fea3419b3b3980dac8d2afe970081 (diff)
downloaddots-b142bdd3d613289564a73807725bf07650c13ff1.tar.gz
zsh: completion: cleanup fpath
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Diffstat (limited to '.config/zsh/completion.zsh')
-rw-r--r--.config/zsh/completion.zsh17
1 files changed, 1 insertions, 16 deletions
diff --git a/.config/zsh/completion.zsh b/.config/zsh/completion.zsh
index ed57020..9661ecc 100644
--- a/.config/zsh/completion.zsh
+++ b/.config/zsh/completion.zsh
@@ -60,7 +60,7 @@ zstyle ':completion:*:cd:*' ignore-parents parent pwd
setopt auto_cd
### Complete from middle of filename
-zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+l:|=* r:|=*'
+setopt complete_in_word
### auto rehash
zstyle ':completion:*' rehash true
@@ -70,19 +70,4 @@ zstyle ':completion:*' menu select list-colors ${(s.:.)LS_COLORS}
### completion and prompt init
autoload -Uz compinit colors vcs_info
-fpath+=(~/.zfunc $fpath)
-fpath+=(~/.config/zsh/completion $fpath)
compinit
-__pip() {{
- compadd $( COMP_WORDS="$words[*]" \
- COMP_CWORD=$((CURRENT-1)) \
- PIP_AUTO_COMPLETE=1 $words[1] 2>/dev/null )
- }}
-if [[ $zsh_eval_context[-1] == loadautofunc ]]; then
- # autoload from fpath, call function directly
- __pip "$@"
-else
- # eval/source/. command, register function for later
- compdef __pip -P pip
- compdef __pip -P pip3
-fi