summaryrefslogtreecommitdiff
path: root/config/essentials/zsh/comp.zsh
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-01-25 21:57:26 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-01-25 21:57:26 +0100
commit5f06a3ca53faf20a75ae672b89ba201ff7cf3877 (patch)
tree1a80257ced08c997474edf27b9b18da556bc578b /config/essentials/zsh/comp.zsh
parent4936de680ce67d4ce7d41d7e4666868d7502fcce (diff)
zsh Refactor multiple files and use zap
Diffstat (limited to 'config/essentials/zsh/comp.zsh')
-rw-r--r--config/essentials/zsh/comp.zsh49
1 files changed, 49 insertions, 0 deletions
diff --git a/config/essentials/zsh/comp.zsh b/config/essentials/zsh/comp.zsh
new file mode 100644
index 0000000..94d76b1
--- /dev/null
+++ b/config/essentials/zsh/comp.zsh
@@ -0,0 +1,49 @@
+# ### Completion
+
+# autoload -Uz compinit; compinit
+# zstyle ':compinstall' filename '/home/aluc/.zshrc'
+# # cache
+# zstyle ':completion:*' use-cache on
+# zstyle ':completion:*' cache-path "$ZDOTDIR/zcompcache"
+
+# # completers
+# zstyle ':completion:*' completer _extensions _complete
+
+# # format
+# zstyle ':completion:*:*:*:*:descriptions' format '%F{blue}-- %D%d --%f'
+# 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:*:*:*:*:default' list-colors ${(s.:.)LS_COLORS}
+
+# # Group completions by categories
+# zstyle ':completion:*' group-name ''
+# zstyle ':completion:*:*:-command-:*:*' group-order aliases builtins functions commands
+
+# zstyle ':completion:*' squeeze-slashes true
+
+# # Prefer completing for an option (think cd -)
+# zstyle ':completion:*' complete-options true
+
+# # keep prefix when completing
+# zstyle ':completion:*' keep-prefix true
+
+# # ui
+# zstyle ':completion:*' menu select
+
+# _dotnet_zsh_complete()
+# {
+# local completions=("$(dotnet complete "$words")")
+
+# # If the completion list is empty, just continue with filename selection
+# if [ -z "$completions" ]
+# then
+# _arguments '*::arguments: _normal'
+# return
+# fi
+
+# # This is not a variable assignment, don't remove spaces!
+# _values = "${(ps:\n:)completions}"
+# }
+# compdef _dotnet_zsh_complete dotnet \ No newline at end of file