Configuring Autocompletion for `mesheryctl`
If you would like to have mesheryctl
commands automatically completed for use as you use mesheryctl
, then use the following instructions to configure automatic completion within your environment.
Autocompletion for Bash
bash <= 3.2
source /dev/stdin <<< "$(mesheryctl completion bash)"
bash >= 4.0
source <(mesheryctl completion bash)
bash <= 3.2 on MacOS
brew install bash-completion # ensure you have bash-completion 1.3+ mesheryctl completion bash > $(brew --prefix)/etc/bash_completion.d/mesheryctl
bash >= 4.0 on MacOS
brew install bash-completion@2 mesheryctl completion bash > $(brew --prefix)/etc/bash_completion.d/mesheryctl
Autocompletion for zsh
source <(mesheryctl completion zsh)
If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:
~/.zshrc > echo "autoload -U compinit; compinit"
Note : You might need to restart your shell for this setup to take effect.
zsh on MacOS and Oh My zsh
COMPLETION_DIR=$(echo $fpath | grep -o '[^ ]*completions' | grep -v cache) && mkdir -p $COMPLETION_DIR && mesheryctl completion zsh > "${COMPLETION_DIR}/_mesheryctl"
Autocompletion for fish
mesheryctl completion fish | source
To load fish shell completions for each session, execute once:
mesheryctl completion fish > ~/.config/fish/completions/mesheryctl.fish
Suggested Reading
For an exhaustive list of mesheryctl
commands and syntax:
Guides to using Meshery’s various features and components.
Recent Discussions with "mesheryctl" Tag
- Dec 21 Facing an error in setting up meshery locally by gopi.vaibhav
- Dec 17 Error installing Meshery on Ubuntu 22.04 by Anita-ihuman
- Dec 07 Error deploying mesheryctl by Ebi
- Nov 08 Not able to choose an adapter an install mesheryctl command by Kamal.Singh
- Oct 06 Unable to setup meshery docs on local (mac) by Franklin.Ekoh
- Sep 27 Issue while setting up meshery using GItpod by Kamal.Singh
- Sep 03 How to run Mesheryctl locally in my system by Lee
- Jul 27 Mesheryctl app import: Design Spec Review by alphaX86
- Jul 27 Meshery Not Starting (mesheryctl) by harkiratsm
- Jul 06 Call for Feedback: Behavior changes in `mesheryctl mesh` by Lee