Skip to Content
CLI ToolShell Autocompletion

Shell Autocompletion

meowload can generate autocompletion scripts for popular shells, allowing you to press Tab to autocomplete subcommands and flags.

Supported Shells

  • Bash
  • Zsh
  • Fish
  • PowerShell

Zsh

Zsh is the default shell on macOS.

Enable for the current session:

source <(meowload completion zsh)

Enable permanently (recommended):

meowload completion zsh > $(brew --prefix)/share/zsh/site-functions/_meowload
Note

If shell completion is not already enabled in your environment, run this once:

echo "autoload -U compinit; compinit" >> ~/.zshrc

Restart your terminal for the changes to take effect.


Bash

Enable for the current session:

source <(meowload completion bash)

Enable permanently:

macOS:

meowload completion bash > $(brew --prefix)/etc/bash_completion.d/meowload

Linux:

meowload completion bash > /etc/bash_completion.d/meowload
Note

Bash autocompletion requires the bash-completion package. If not installed, you can install it via your package manager:

# macOS brew install bash-completion

Restart your terminal for the changes to take effect.


Fish

Enable for the current session:

meowload completion fish | source

Enable permanently:

meowload completion fish > ~/.config/fish/completions/meowload.fish

Restart your terminal for the changes to take effect.


PowerShell

Enable for the current session:

meowload completion powershell | Out-String | Invoke-Expression

Enable permanently:

Add the above command to your PowerShell profile. You can find your profile path by running:

echo $PROFILE