$ mkdir -p ~/.config/fish/completions
$ cd ~/.config/fish
$ git clone https://github.com/evanlucas/fish-kubectl-completions
$ ln -s ../fish-kubectl-completions/kubectl.fish completions/
This was tested using go 1.11.1 on macOS.
$ go build
$ ./kcfishgen > kubectl.fish
This is used to pass the --request-timeout
flag to the kubectl
command.
It defaults to 5s
.
Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests.
Evan Lucas
MIT