about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Core/_setup13
1 files changed, 13 insertions, 0 deletions
diff --git a/Completion/Core/_setup b/Completion/Core/_setup
new file mode 100644
index 000000000..f12c34b34
--- /dev/null
+++ b/Completion/Core/_setup
@@ -0,0 +1,13 @@
+#autoload
+
+local colors i
+
+for i; do
+  if _style -a "$i" list-colors colors; then
+    if [[ "$1" = default ]]; then
+      ZLS_COLORS="${(j.:.)${(@)colors:gs/:/\\\:}}"
+    else
+      eval "ZLS_COLORS=\"(${i})\${(j.:(${i}).)\${(@)colors:gs/:/\\\:}}:\${ZLS_COLORS}\""
+    fi
+  fi
+done