Skip to main content

envshed completions

Generate a tab-completion script for the specified shell and print it to stdout. Pipe the output to a file and source it from your shell configuration to enable tab-completion for all envshed commands and their flags.

Usage

envshed completions <shell>

Arguments

ArgumentDescription
<shell>Shell type: bash, zsh, or fish

Installation

Bash

# Append to ~/.bash_completion (create if it doesn't exist)
envshed completions bash >> ~/.bash_completion

# Then add to ~/.bashrc if not already loading ~/.bash_completion:
# source ~/.bash_completion

Zsh

# Write to your Zsh completions directory (create if needed)
mkdir -p ~/.zsh/completions
envshed completions zsh > ~/.zsh/completions/_envshed

# Then add to ~/.zshrc if not already present:
# fpath=(~/.zsh/completions $fpath)
# autoload -U compinit && compinit

Fish

# Write to the Fish completions directory
envshed completions fish > ~/.config/fish/completions/envshed.fish

Fish automatically loads completions from ~/.config/fish/completions/ — no additional configuration is needed.

Notes

  • Completions are static — they cover all commands and flags, but do not dynamically complete org/project/env slug values (this requires API access and is not supported).
  • After installing completions, start a new shell session or source your config file for changes to take effect.
  • Re-run the installation command after upgrading envshed to pick up any new commands or flags.