mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 01:42:56 +08:00
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:
parent
65e1c42a2b
commit
dc411b373d
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user