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/_meowloadIf shell completion is not already enabled in your environment, run this once:
echo "autoload -U compinit; compinit" >> ~/.zshrcRestart 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/meowloadLinux:
meowload completion bash > /etc/bash_completion.d/meowloadBash autocompletion requires the bash-completion package. If not installed, you can install it via your package manager:
# macOS
brew install bash-completionRestart your terminal for the changes to take effect.
Fish
Enable for the current session:
meowload completion fish | sourceEnable permanently:
meowload completion fish > ~/.config/fish/completions/meowload.fishRestart your terminal for the changes to take effect.
PowerShell
Enable for the current session:
meowload completion powershell | Out-String | Invoke-ExpressionEnable permanently:
Add the above command to your PowerShell profile. You can find your profile path by running:
echo $PROFILE