diff options
author | 2014-12-17 18:09:03 -0500 | |
---|---|---|
committer | 2014-12-17 18:09:03 -0500 | |
commit | b59abbeb9423d75dc258d900bd3ea7dded586b98 (patch) | |
tree | 9c05c03d2109da55fcae5633e434eef4748255d8 /src/_gcc-config | |
parent | Merge pull request #2 from dset0x/equery-completions (diff) | |
download | zsh-completion-b59abbeb9423d75dc258d900bd3ea7dded586b98.tar.gz zsh-completion-b59abbeb9423d75dc258d900bd3ea7dded586b98.tar.bz2 zsh-completion-b59abbeb9423d75dc258d900bd3ea7dded586b98.zip |
use consistent indentation (2 spaces) and add vim modelines
Diffstat (limited to 'src/_gcc-config')
-rw-r--r-- | src/_gcc-config | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/src/_gcc-config b/src/_gcc-config index 3b0fcf3..ce61113 100644 --- a/src/_gcc-config +++ b/src/_gcc-config @@ -1,27 +1,30 @@ #compdef gcc-config -#Author oberyno <oberyno@gmail.com> + +# Author oberyno <oberyno@gmail.com> local arguments arguments=( - '(- :)'{--use-old,-O}'[use the old profile if one was selected]' - '(- :)'{--use-portage-chost,-P}'[only set profile if its CHOST matches /etc/{portage/}make.conf]:profiles:_gcc_profile' - '(- :)'{--get-current-profile,-c}'[print current used gcc profile]' - '(- :)'{--list-profiles,-l}'[print a list of available profiles]' - '(- :)'{--print-environ,-E}'[print environment of the given/current profile]:profiles:_gcc_profile' - '(- :)'{--get-bin-path,-B}'[print binary path of given/current profile]:profiles:_gcc_profile' - '(- :)'{--get-lib-path,-L}'[print library 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]' - '(- :)'{--version,-v}'[show version info]' - '(- :):profiles:_gcc_profile' + '(- :)'{--use-old,-O}'[use the old profile if one was selected]' + '(- :)'{--use-portage-chost,-P}'[only set profile if its CHOST matches /etc/{portage/}make.conf]:profiles:_gcc_profile' + '(- :)'{--get-current-profile,-c}'[print current used gcc profile]' + '(- :)'{--list-profiles,-l}'[print a list of available profiles]' + '(- :)'{--print-environ,-E}'[print environment of the given/current profile]:profiles:_gcc_profile' + '(- :)'{--get-bin-path,-B}'[print binary path of given/current profile]:profiles:_gcc_profile' + '(- :)'{--get-lib-path,-L}'[print library 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]' + '(- :)'{--version,-v}'[show version info]' + '(- :):profiles:_gcc_profile' ) _gcc_profile(){ - local profile - profile=(${(f)"$(_call_program gcc-installed RC_NOCOLOR=yes gcc-config --list-profiles)"}) - profile=${${profile/\[([^]]*)\]/}/\*} - _tags profile && { compadd "$@" -k profile || compadd "$@" ${(kv)=profile} } + local profile + profile=(${(f)"$(_call_program gcc-installed RC_NOCOLOR=yes gcc-config --list-profiles)"}) + profile=${${profile/\[([^]]*)\]/}/\*} + _tags profile && { compadd "$@" -k profile || compadd "$@" ${(kv)=profile} } } _arguments $arguments + +# vim: set et sw=2 sts=2 ts=2 ft=zsh: |