Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 776 Bytes

File metadata and controls

47 lines (33 loc) · 776 Bytes

Shell Completion

Bash (Linux)

# Add to ~/.bashrc
source <(fotingo completion bash)

# Or install system-wide
fotingo completion bash > /etc/bash_completion.d/fotingo

Bash (macOS with Homebrew)

brew install bash-completion
source <(fotingo completion bash)

Zsh

# Add before compinit in ~/.zshrc
source <(fotingo completion zsh)

# Or generate file in your fpath
fotingo completion zsh > "${fpath[1]}/_fotingo"

# Refresh completion cache if needed
rm -f ~/.zcompdump; compinit

Fish

# Current session
fotingo completion fish | source

# Persist
fotingo completion fish > ~/.config/fish/completions/fotingo.fish

PowerShell

fotingo completion powershell | Out-String | Invoke-Expression