Skip to main content
Version: 0.9

tecton completion

Usage​

tecton completion [OPTIONS]

Description​

Generates a shell script to set up tab completion for Tecton. Zsh, bash, and fish shells are supported.

See typical usage examples below:

zsh:​

Generate and save the Tecton auto-complete script.

tecton completion --zsh > ~/.tecton-complete.zsh

Enable zsh auto-completion. (Not needed if you already have auto-complete enabled, e.g. are using oh-my-zsh.)

echo 'autoload -Uz compinit && compinit' >> ~/.zshrc

Add sourcing the script into your .zshrc.

echo '. ~/.tecton-complete.zsh' >> ~/.zshrc

bash:​

Generate and save the Tecton auto-complete script.

tecton completion --bash > ~/.tecton-complete.bash

Add sourcing the script into your .bashrc.

echo '. ~/.tecton-complete.bash' >> ~/.bashrc

fish:​

Generate and save the Tecton auto-complete script to your fish configs.

tecton completion --fish > ~/.config/fish/completions/tecton.fish

Options​

FlagDescription
--zshGenerate a zsh tab completion script
--bashGenerate a bash tab completion script
--fishGenerate a fish tab completion script

Was this page helpful?