about summary refs log tree commit diff
path: root/Completion/Core
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-12-03 16:43:20 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-12-03 16:43:20 +0000
commita9e41e408e7aab8aa2e04198f9609e76c727467f (patch)
tree33aa6e100a2bb42b5f7b1e688cea62bcf2c06932 /Completion/Core
parente1eeb933451b8781c9ecfb2ee3c575ff2bcc383b (diff)
downloadzsh-a9e41e408e7aab8aa2e04198f9609e76c727467f.tar.gz
zsh-a9e41e408e7aab8aa2e04198f9609e76c727467f.tar.xz
zsh-a9e41e408e7aab8aa2e04198f9609e76c727467f.zip
Initial revision
Diffstat (limited to 'Completion/Core')
-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