about summary refs log tree commit diff
path: root/Completion/Unix/Command/_go
blob: c48cc51e4a0daa7727658451f2281806298de324 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"