about summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-05-23 12:44:14 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-05-23 12:44:14 +0000
commit67ce57d609f23b08fce2fa6739943f98bb7877cf (patch)
tree1f073fe159b61b042f0bf7f3359591b12919708a /Completion/Unix
parent533f3c9d917ddf855c208a4f88c8d6c587918da9 (diff)
downloadzsh-67ce57d609f23b08fce2fa6739943f98bb7877cf.tar.gz
zsh-67ce57d609f23b08fce2fa6739943f98bb7877cf.tar.xz
zsh-67ce57d609f23b08fce2fa6739943f98bb7877cf.zip
29341, corrected: go programming language
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Command/.distfiles1
-rw-r--r--Completion/Unix/Command/_go18
2 files changed, 19 insertions, 0 deletions
diff --git a/Completion/Unix/Command/.distfiles b/Completion/Unix/Command/.distfiles
index c254f6547..756ccec74 100644
--- a/Completion/Unix/Command/.distfiles
+++ b/Completion/Unix/Command/.distfiles
@@ -77,6 +77,7 @@ _global
 _gnu_generic
 _gnupod
 _gnutls
+_go
 _gpg
 _gphoto2
 _gprof
diff --git a/Completion/Unix/Command/_go b/Completion/Unix/Command/_go
new file mode 100644
index 000000000..c48cc51e4
--- /dev/null
+++ b/Completion/Unix/Command/_go
@@ -0,0 +1,18 @@
+#compdef gccgo gofmt 5l 6l 8l 5g 6g 8g
+
+# This is for the computer language go,
+# http://glolang.org.
+
+local expl pat
+
+case $service in
+  (<->l)
+  pat="*.${service[1,-2]}"
+  ;;
+
+  (*)
+  pat="*.go"
+  ;;
+esac
+
+_wanted files expl "input file" _files -g "$pat"