about summary refs log tree commit diff
path: root/Completion/Core/_setup
blob: f12c34b342b8928a2b3eb06d274942eb5b6922ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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