LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

kubectl-completion

generates shell autocompletion scripts

TLDR

Generate bash completion
$ kubectl completion bash
copy
Generate zsh completion
$ kubectl completion zsh
copy
Enable for current session
$ source <(kubectl completion bash)
copy
Add to bashrc
$ echo "source <(kubectl completion bash)" >> ~/.bashrc
copy
Add to zshrc
$ echo "source <(kubectl completion zsh)" >> ~/.zshrc
copy

SYNOPSIS

kubectl completion shell

DESCRIPTION

kubectl completion generates shell autocompletion scripts. It enables tab completion for kubectl commands.The command outputs shell-specific completion code. Source it in your shell config for persistent completion.

PARAMETERS

SHELL

Shell type (bash, zsh, fish, powershell).
bash
Generate bash completion.
zsh
Generate zsh completion.
fish
Generate fish completion.
--help
Display help information.

INSTALL

sudo apt install kubectl
copy
sudo pacman -S kubectl
copy
sudo apk add kubectl
copy
brew install kubectl
copy
nix profile install nixpkgs#kubectl
copy

CAVEATS

Subcommand of kubectl. Requires bash-completion package for bash. Shell-specific.

HISTORY

kubectl completion provides shell integration for kubectl, improving command-line efficiency.

SEE ALSO

kubectl(1), bash(1), zsh(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid