Skip to content

axle completion

Terminal window
axle completion <shell>

axle completion prints a script that makes Tab complete Axle’s commands, options and the values they take, such as axle run --output-logs <Tab>. The shell is bash, zsh, fish, powershell or elvish. Load the script from your shell’s startup file, as below, and open a new terminal.

Add this line to ~/.bashrc:

Terminal window
eval "$(axle completion bash)"

Add this line to ~/.zshrc, after compinit:

Terminal window
eval "$(axle completion zsh)"

Write the script into fish’s completions folder once:

Terminal window
axle completion fish > ~/.config/fish/completions/axle.fish

Add this line to your profile, the file $PROFILE names:

Terminal window
axle completion powershell | Out-String | Invoke-Expression

Add this line to ~/.config/elvish/rc.elv:

Terminal window
eval (axle completion elvish | slurp)

The bash, zsh, PowerShell and Elvish lines run axle completion in each new terminal, so they always match the installed Axle. A fish completions file is written once: write it again after updating Axle to complete new commands and options.