Generate shell completion scripts for Oxide CLI commands.

This command generates scripts for various shells that can be used to enable completion.

Installation

Bash

Add this to your ~/.bash_profile:

eval "$(oxide completion -s bash)"

Zsh

Add this to your ~/.zshrc:

autoload -U compinit
compinit -i
eval "$(oxide completion -s zsh)"

Fish

Add the following to the is-interactive block in your ~/.config/fish/config.fish:

oxide completion -s fish | source

PowerShell

Open your profile script with:

mkdir -Path (Split-Path -Parent $profile)
notepad $profile

Add the following line and save the file:

Invoke-Expression -Command $(oxide completion -s powershell | Out-String)

Elvish

Add this to your ~/.config/elvish/rc.elv

eval (oxide completion -s elvish | slurp)

Options

--profile
Configuration profile to use for commands
-s, --shell
bashelvishfishpowershellzsh
Shell type