equal
deleted
inserted
replaced
26 "333333" |
26 "333333" |
27 "345678" |
27 "345678" |
28 "147258" |
28 "147258" |
29 ) |
29 ) |
30 |
30 |
|
31 local SHADER_TYPE=( |
|
32 "vertex" |
|
33 "fragment" |
|
34 ) |
|
35 |
31 if [[ "$w1" == "--texture" ]]; then |
36 if [[ "$w1" == "--texture" ]]; then |
|
37 COMPREPLY=($(compgen -f -- "$w0"; compgen -d -S / -- "$w0")) |
|
38 elif [[ "$w1" == "--shader" ]]; then |
|
39 COMPREPLY=($(compgen -W "${SHADER_TYPE[*]}" -- "$w0")) |
|
40 elif [[ "$w2" == "--shader" ]]; then |
32 COMPREPLY=($(compgen -f -- "$w0"; compgen -d -S / -- "$w0")) |
41 COMPREPLY=($(compgen -f -- "$w0"; compgen -d -S / -- "$w0")) |
33 elif [[ "$w1" == "--background-color" ]]; then |
42 elif [[ "$w1" == "--background-color" ]]; then |
34 COMPREPLY=($(compgen -W "${COLOR[*]}" -- "$w0")) |
43 COMPREPLY=($(compgen -W "${COLOR[*]}" -- "$w0")) |
35 else |
44 else |
36 local OPTIONS=( |
45 local OPTIONS=( |
37 "--texture" |
46 "--texture" |
|
47 "--shader" |
38 "--background-color" |
48 "--background-color" |
39 "--root-window" |
49 "--root-window" |
40 ) |
50 ) |
41 COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0")) |
51 COMPREPLY=($(compgen -W "${OPTIONS[*]}" -- "$w0")) |
42 fi |
52 fi |