Lines 14-24
Link Here
|
14 |
'(- :)'{--get-stdcxx-incdir,-X}'[print g++ include path of given/current profile]:profiles:_gcc_profile' |
14 |
'(- :)'{--get-stdcxx-incdir,-X}'[print g++ include path of given/current profile]:profiles:_gcc_profile' |
15 |
'(- :)'{--help,-h}'[show help]' |
15 |
'(- :)'{--help,-h}'[show help]' |
16 |
'(- :)'{--version,-v}'[show version info]' |
16 |
'(- :)'{--version,-v}'[show version info]' |
17 |
'(- :)'':profiles:_gcc_profile' |
17 |
'(- :):profiles:_gcc_profile' |
18 |
) |
18 |
) |
19 |
|
19 |
|
20 |
_gcc_profile(){ |
20 |
_gcc_profile(){ |
21 |
profile=$(_call_program tag gcc-config --list-profiles | sed -r -e 's/(\[([^]]*)\]) //g') |
21 |
local profile |
|
|
22 |
profile=$(_call_program tag gcc-config --list-profiles) |
23 |
profile=${profile/\[([^]]*)\]/} |
22 |
_tags profile && { compadd "$@" -k profile || compadd "$@" ${(kv)=profile} } |
24 |
_tags profile && { compadd "$@" -k profile || compadd "$@" ${(kv)=profile} } |
23 |
} |
25 |
} |
24 |
|
26 |
|