blob: dfd1b41270390760eaa1878f6f371673dbd7b376 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#autoload
local val
if _style -a "$1" list-colors val; then
if [[ "$1" = default ]]; then
ZLS_COLORS="${(j.:.)${(@)val:gs/:/\\\:}}"
else
eval "ZLS_COLORS=\"(${1})\${(j.:(${1}).)\${(@)val:gs/:/\\\:}}:\${ZLS_COLORS}\""
fi
fi
if _style -s "$1" list-packed val; then
if [[ "$val" = (yes|true|1|on) ]]; then
compstate[list]="${compstate[list]} packed"
else
compstate[list]="${compstate[list]:gs/packed//}"
fi
else
compstate[list]="$_saved_list"
fi
if _style -s "$1" list-rows-first val; then
if [[ "$val" = (yes|true|1|on) ]]; then
compstate[list]="${compstate[list]} rows"
else
compstate[list]="${compstate[list]:gs/rows//}"
fi
else
compstate[list]="$_saved_list"
fi
if _style -s "$1" last-prompt val; then
if [[ "$val" = (yes|true|1|on) ]]; then
compstate[last_prompt]=yes
else
compstate[last_prompt]=''
fi
else
compstate[last_prompt]="$_saved_lastprompt"
fi
if _style -s "$1" accept-exact val; then
if [[ "$val" = (yes|true|1|on) ]]; then
compstate[exact]=accept
else
compstate[exact]=''
fi
else
compstate[exact]="$_saved_exact"
fi
|