diff --git a/src/content/docs/aws/developer-tools/running-localstack/lstk/index.mdx b/src/content/docs/aws/developer-tools/running-localstack/lstk/index.mdx index c7a02b28..df201697 100644 --- a/src/content/docs/aws/developer-tools/running-localstack/lstk/index.mdx +++ b/src/content/docs/aws/developer-tools/running-localstack/lstk/index.mdx @@ -131,57 +131,6 @@ These apply to both interactive and non-interactive (scripted/CI) use, see [Auto `lstk` includes completion scripts for bash, zsh, fish, and powershell. If you installed via Homebrew, completions are set up automatically. -For manual setup: - - - - -```bash -# Load in current session -eval "$(lstk completion bash)" - -# Persist (Linux) -lstk completion bash > /etc/bash_completion.d/lstk - -# Persist (macOS with Homebrew) -lstk completion bash > $(brew --prefix)/etc/bash_completion.d/lstk -``` - -:::note -Use `eval "$(lstk completion bash)"` rather than `source <(lstk completion bash)`. -The `lstk` script works with or without the `bash-completion` package (it bundles a fallback for stock macOS bash 3.2), but `source <(...)` is a silent no-op on that shell. -::: - - - - -```bash -# Load in current session -source <(lstk completion zsh) - -# Persist (Linux) -lstk completion zsh > "${fpath[1]}/_lstk" - -# Persist (macOS with Homebrew) -lstk completion zsh > $(brew --prefix)/share/zsh/site-functions/_lstk -``` - - - - -```bash -# Load in current session -lstk completion fish | source - -# Persist -lstk completion fish > ~/.config/fish/completions/lstk.fish -``` - - - - -Restart your shell after persisting completions. - ### `completion` Generate shell completion scripts. @@ -190,4 +139,4 @@ Generate shell completion scripts. lstk completion [bash|zsh|fish|powershell] ``` -See [Shell completions](#shell-completions) above for setup instructions. +Run `lstk completion` to print setup instructions in your terminal. diff --git a/src/content/docs/azure/developer-tools/lstk.mdx b/src/content/docs/azure/developer-tools/lstk.mdx index 36e9b033..8c5598ce 100644 --- a/src/content/docs/azure/developer-tools/lstk.mdx +++ b/src/content/docs/azure/developer-tools/lstk.mdx @@ -1215,7 +1215,7 @@ Generate shell completion scripts. lstk completion [bash|zsh|fish|powershell] ``` -See [Shell completions](#shell-completions) for setup instructions. +Run `lstk completion` to print setup instructions in your terminal. ## Global options @@ -1438,58 +1438,8 @@ Pair this behavior with a custom [`image`](#custom-container-image) that points `lstk` includes completion scripts for bash, zsh, fish, and powershell. If you installed via Homebrew, completions are set up automatically. -Once completion is enabled, `lstk aws ` also completes AWS services, operations, and parameters using the AWS CLI's own completer. -For manual setup: - - - - -```bash -# Load in current session -eval "$(lstk completion bash)" - -# Persist (Linux) -lstk completion bash > /etc/bash_completion.d/lstk - -# Persist (macOS with Homebrew) -lstk completion bash > $(brew --prefix)/etc/bash_completion.d/lstk -``` - -:::note -Use `eval "$(lstk completion bash)"` rather than `source <(lstk completion bash)`. -The `lstk` script works with or without the `bash-completion` package (it bundles a fallback for stock macOS bash 3.2), but `source <(...)` is a silent no-op on that shell. -::: - - - - -```bash -# Load in current session -source <(lstk completion zsh) - -# Persist (Linux) -lstk completion zsh > "${fpath[1]}/_lstk" - -# Persist (macOS with Homebrew) -lstk completion zsh > $(brew --prefix)/share/zsh/site-functions/_lstk -``` - - - - -```bash -# Load in current session -lstk completion fish | source - -# Persist -lstk completion fish > ~/.config/fish/completions/lstk.fish -``` - - - - -Restart your shell after persisting completions. +Run `lstk completion` to print setup instructions in your terminal. ## FAQ