Remove "go run" from commands with exclusive args

`go run` compiles and runs a go program passing along the trailing args to the compiled program. Limiting `go run` to only complete *.go files means that if you are running a go file that takes a file path as a command line argument, you frustratingly cannot use tab completion.
This commit is contained in:
Tom Dunlap 2020-08-20 16:47:37 -04:00 committed by Fabian Homborg
parent 65e1c42a2b
commit dc411b373d

View File

@ -21,7 +21,7 @@ complete -c go -n "__fish_seen_subcommand_from $__go_cmds_w_buildflags" -o mod -
# Completions for go cmds that takes file arguments
complete -c go -n "__fish_seen_subcommand_from build compile fix fmt install run test vet" -x -a "(
complete -c go -n "__fish_seen_subcommand_from build compile fix fmt install test vet" -x -a "(
__fish_complete_suffix .go
)" --description File