Shell Completion
NetLoom supports tab completion for bash, zsh, and fish shells.
Installation
Automatic (Recommended)
netloom install-completion --install bash
netloom install-completion --install zsh
netloom install-completion --install fish
This automatically adds the completion script to your shell configuration file.
Manual
Add the appropriate line to your shell config:
Bash (~/.bashrc):
Zsh (~/.zshrc):
Fish (~/.config/fish/config.fish):
Then reload your shell: source ~/.bashrc (or equivalent).
Usage
Press Tab to complete commands, options, and file paths:
netloom <TAB> # Shows all commands
netloom --<TAB> # Shows all options
netloom --topology <TAB> # Completes file paths
Troubleshooting
If completion doesn't work:
- Restart your terminal or run
source ~/.bashrc(or equivalent) - Verify the completion line exists in your shell config file
- Check you're using the correct shell:
echo $SHELL