View | Details | Raw Unified
Collapse All | Expand All

(-) /usr/portage/app-shells/zsh/files/_gcc-config (-2 / +4 lines)
 Lines 14-24    Link Here 
	'(- :)'{--get-stdcxx-incdir,-X}'[print g++ include path of given/current profile]:profiles:_gcc_profile'
	'(- :)'{--get-stdcxx-incdir,-X}'[print g++ include path of given/current profile]:profiles:_gcc_profile'
	'(- :)'{--help,-h}'[show help]'	
	'(- :)'{--help,-h}'[show help]'	
	'(- :)'{--version,-v}'[show version info]'	
	'(- :)'{--version,-v}'[show version info]'	
	'(- :)'':profiles:_gcc_profile'
	'(- :):profiles:_gcc_profile'
)
)
_gcc_profile(){
_gcc_profile(){
    profile=$(_call_program tag gcc-config --list-profiles | sed -r -e 's/(\[([^]]*)\]) //g')
    local profile
    profile=$(_call_program tag gcc-config --list-profiles)
    profile=${profile/\[([^]]*)\]/}
    _tags profile && { compadd "$@" -k profile || compadd "$@" ${(kv)=profile} }
    _tags profile && { compadd "$@" -k profile || compadd "$@" ${(kv)=profile} }
}
}