Add instructions for enabling fish auto-completions for kubectl

This commit is contained in:
brianpursley
2022-01-09 20:36:19 -05:00
parent 05c913e683
commit ad015ad425
3 changed files with 19 additions and 2 deletions
@@ -0,0 +1,15 @@
---
title: "fish auto-completion"
description: "Optional configuration to enable fish shell auto-completion."
headless: true
---
The kubectl completion script for Fish can be generated with the command `kubectl completion fish`. Sourcing the completion script in your shell enables kubectl autocompletion.
To do so in all your shell sessions, add the following line to your `~/.config/fish/config.fish` file:
```shell
kubectl completion fish | source
```
After reloading your shell, kubectl autocompletion should be working.