steampipe completion
Generate the autocompletion script for steampipe for supported shells. This helps you configure your terminal’s shell so that steampipe commands autocomplete when you press the TAB key.
Usage
Sub-Commands
Command | Description |
---|---|
bash | Generate completion code for bash |
fish | Generate completion code for fish |
zsh | Generate completion code for zsh |
steampipe completion bash
Generate the autocompletion script for the bash shell.
Pre-requisites
This script depends on the bash-completion package. If it is not installed already, you can install it via your OS’s package manager.
Most Linux distributions have bash-completion installed by default, however it is not installed by default in Mac OS. For example, to install the bash-completion package with homebrew:
Once installed, edit your .bash_profile or .bashrc file and add the following line:
Examples
Review the configuration:
Enable auto-complete in your current shell session:
Enable auto-complete for every new session (execute once). You will need to start a new shell for this setup to take effect:
Linux:
MacOS:
steampipe completion fish
Generate the autocompletion script for the fish shell.
Examples
Review the configuration:
Enable auto-complete in your current shell session:
Enable auto-complete for every new session (execute once). You will need to start a new shell for this setup to take effect:
steampipe completion zsh
Generate the autocompletion script for the zsh shell.
Pre-requisites
If shell completion is not enabled in your environment, you will need to enable it using:
You will need to start a new shell for this setup to take effect.
Examples
Review the configuration:
Enable auto-complete for every new session (execute once). You will need to start a new shell for this setup to take effect: