Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.01 KB

File metadata and controls

49 lines (35 loc) · 1.01 KB

Shell Completions

Enable tab completions for your shell.

Bash

# Create completions directory if needed
mkdir -p ~/.bash_completion.d

# Generate and install completions
linear-cli completions bash > ~/.bash_completion.d/linear-cli

# Add to ~/.bashrc if not already present
echo 'source ~/.bash_completion.d/linear-cli' >> ~/.bashrc
source ~/.bashrc

Zsh

# Create completions directory if needed
mkdir -p ~/.zsh/completions

# Generate completions
linear-cli completions zsh > ~/.zsh/completions/_linear-cli

# Add to ~/.zshrc if not already present
echo 'fpath=(~/.zsh/completions $fpath)' >> ~/.zshrc
echo 'autoload -Uz compinit && compinit' >> ~/.zshrc
source ~/.zshrc

Fish

# Generate and install completions
linear-cli completions fish > ~/.config/fish/completions/linear-cli.fish

PowerShell

# Generate completions
linear-cli completions powershell > $HOME\linear-cli.ps1

# Add to your PowerShell profile
Add-Content $PROFILE '. $HOME\linear-cli.ps1'