Shell completions
aie completions generates a script from the command interface in the
installed binary. This keeps completions aligned with the exact Gravlax
version in use.
For the current shell:
source <(aie completions bash)For future sessions, write the generated script into a directory loaded by your Bash completion setup, commonly:
mkdir -p ~/.local/share/bash-completion/completionsaie completions bash > ~/.local/share/bash-completion/completions/aieChoose a directory on fpath, then generate _aie there:
mkdir -p ~/.zfuncaie completions zsh > ~/.zfunc/_aieAdd ~/.zfunc to fpath before compinit in .zshrc if it is not already
configured.
mkdir -p ~/.config/fish/completionsaie completions fish > ~/.config/fish/completions/aie.fishRegenerate the file after upgrading Gravlax so new commands and options are included.