summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_gcc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-12-07 12:43:32 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-12-07 12:43:32 +0000
commit960a7e534702b487d82b28dde99053db6f33b992 (patch)
treebd77dbf1864179ff3222afe85e8a373992e67ab5 /Completion/Unix/Command/_gcc
parent4f5132054fdfad0cdbbce0037392f632503ccb92 (diff)
downloadzsh-960a7e534702b487d82b28dde99053db6f33b992.tar.gz
zsh-960a7e534702b487d82b28dde99053db6f33b992.zip
users/4503: don't complete source or header files after gcc -o
Diffstat (limited to 'Completion/Unix/Command/_gcc')
-rw-r--r--Completion/Unix/Command/_gcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_gcc b/Completion/Unix/Command/_gcc
index f826f9793..e6c81e408 100644
--- a/Completion/Unix/Command/_gcc
+++ b/Completion/Unix/Command/_gcc
@@ -166,7 +166,7 @@ esac
_arguments -C -M 'L:|-{fW}no-=-{fW} r:|[_-]=* r:|=*' \
"$args[@]" \
-c -S -E -v -a -w -C -H -P -s '(-pg)-p' '(-p)-pg' \
- '-o:output file:_files' \
+ '-o:output file:_files -g \^\*.\(c\|h\|cc\|C\|cxx\)' \
'-x:input file language:(c objective-c c++ c-header cpp-output c++-cpp-output assembler assembler-with-cpp none)' \
'+e-:virtual function definitions in classes:((0\:only\ interface 1\:generate\ code))' \
'-d-:dump:->dump' \