summaryrefslogtreecommitdiff
path: root/config/essentials/zsh/comp.zsh
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-15 03:00:25 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-15 03:00:25 +0200
commit4914b43f642e2772a140a8f9b1f26b4e555ed88b (patch)
treefa665e469f8daa1f150d13411d0f8537a93e5355 /config/essentials/zsh/comp.zsh
parentad05cb18f03f3a97a918e090c38ba760147a0bb6 (diff)
parent2a9d0908651ac236855fa515e14a83bada3ad7f9 (diff)
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'config/essentials/zsh/comp.zsh')
-rw-r--r--config/essentials/zsh/comp.zsh6
1 files changed, 4 insertions, 2 deletions
diff --git a/config/essentials/zsh/comp.zsh b/config/essentials/zsh/comp.zsh
index 4836111..076882d 100644
--- a/config/essentials/zsh/comp.zsh
+++ b/config/essentials/zsh/comp.zsh
@@ -2,11 +2,10 @@
# Find most of the stuff at https://github.com/zap-zsh/completions
zmodload zsh/complist
-autoload -Uz compinit; compinit
zstyle ':compinstall' filename '/home/aluc/.zshrc'
# cache
-zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path "$ZDOTDIR/zcompcache"
+zstyle ':completion:*' use-cache on
# completers
zstyle ':completion:*' completer _extensions _complete
@@ -37,6 +36,9 @@ zstyle ':completion:*' keep-prefix true
# ui
zstyle ':completion:*' menu select
+ZSH_COMPDUMP="$ZDOTDIR"/zcompcache
+autoload -Uz compinit; compinit -d "$ZSH_COMPDUMP"
+
_dotnet_zsh_complete()
{
local completions=("$(dotnet complete "$words")")