summaryrefslogtreecommitdiff
path: root/config/essentials/zsh/comp.zsh
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-08 14:54:50 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-10-08 14:54:50 +0200
commite73e19e82a893bacd3c1da87835bc066aa69bb23 (patch)
tree3118beecdcda549b16b7eea0c628ae9c517f18e2 /config/essentials/zsh/comp.zsh
parent7a91a55b79f828017b38c9f0af479b25c89bf6a9 (diff)
checkpoint
Diffstat (limited to 'config/essentials/zsh/comp.zsh')
-rw-r--r--config/essentials/zsh/comp.zsh10
1 files changed, 8 insertions, 2 deletions
diff --git a/config/essentials/zsh/comp.zsh b/config/essentials/zsh/comp.zsh
index 076882d..9e46ddb 100644
--- a/config/essentials/zsh/comp.zsh
+++ b/config/essentials/zsh/comp.zsh
@@ -1,10 +1,12 @@
### Completion
# Find most of the stuff at https://github.com/zap-zsh/completions
+ZSH_COMPDUMP="$ZDOTDIR"/zcompcache
+
zmodload zsh/complist
zstyle ':compinstall' filename '/home/aluc/.zshrc'
# cache
-zstyle ':completion:*' cache-path "$ZDOTDIR/zcompcache"
+zstyle ':completion:*' cache-path "$ZSH_COMPDUMP"
zstyle ':completion:*' use-cache on
# completers
@@ -16,7 +18,9 @@ zstyle ':completion:*:*:*:*:messages' format '%F{purple}-- %d --%f'
zstyle ':completion:*:*:*:*:warnings' format '%F{red}-- no matches found --%f'
zstyle ':completion:*:default' list-prompt '%S%M matches%s'
# show a 'ls -a' like outptut when listing files
+zstyle ':completion:*' file-list all
zstyle ':completion:*:*:*:*:default' list-colors ${(s.:.)LS_COLORS}
+zstyle ':completion:*' file-sort date
# automatically find new executables in PATH
zstyle ':completion:*' rehash true
@@ -36,7 +40,7 @@ zstyle ':completion:*' keep-prefix true
# ui
zstyle ':completion:*' menu select
-ZSH_COMPDUMP="$ZDOTDIR"/zcompcache
+fpath=($ZDOTDIR/completions $fpath)
autoload -Uz compinit; compinit -d "$ZSH_COMPDUMP"
_dotnet_zsh_complete()
@@ -54,3 +58,5 @@ _dotnet_zsh_complete()
_values = "${(ps:\n:)completions}"
}
compdef _dotnet_zsh_complete dotnet
+compdef _gnu_generic cpp sqlplus
+