Skip to main content
Version: v. 1

Shell Autocompletion

You can generate autocompletion shell scripts for bash, elvish, fish, powershell, and zsh.

zsh

First, ensure that the following is present somewhere in your ~/.zshrc file (if not, add it):

autoload -U compinit
compinit -i

Then run:

spark completions zsh | sudo tee /usr/local/share/zsh/site-functions/_spark
probe completions zsh | sudo tee /usr/local/share/zsh/site-functions/_probe
shuttle completions zsh | sudo tee /usr/local/share/zsh/site-functions/_shuttle

For ARM-based systems:

spark completions zsh > /opt/homebrew/completions/zsh/_spark
probe completions zsh > /opt/homebrew/completions/zsh/_probe
shuttle completions zsh > /opt/homebrew/completions/zsh/_shuttle

fish

mkdir -p $HOME/.config/fish/completions
spark completions fish > $HOME/.config/fish/completions/spark.fish
probe completions fish > $HOME/.config/fish/completions/probe.fish
shuttle completions fish > $HOME/.config/fish/completions/shuttle.fish
source $HOME/.config/fish/config.fish

bash

mkdir -p $HOME/.local/share/bash-completion/completions
spark completions bash > $HOME/.local/share/bash-completion/completions/spark
probe completions bash > $HOME/.local/share/bash-completion/completions/probe
shuttle completions bash > $HOME/.local/share/bash-completion/completions/shuttle
exec bash