Shell Completion
Panix supports tab completion for commands, flags, and flag values in bash, zsh, and fish.
Install
Section titled “Install”echo 'source <(panix completion -c bash)' >> ~/.bashrcecho 'source <(panix completion -c zsh)' >> ~/.zshrcecho 'panix completion -c fish | source' >> ~/.config/fish/config.fishRun panix completion with no shell argument to auto-detect. Use -c to print raw shell code for piping.
Nix / Home Manager
Section titled “Nix / Home Manager”When Panix is installed via the Nix flake, shell completions are installed
automatically using installShellFiles. No manual sourcing is needed; just
make sure your shell is enabled:
# Home Manager or NixOSprograms.bash.enable = true; # or programs.zsh.enable / programs.fish.enableTroubleshooting
Section titled “Troubleshooting”Completion doesn’t work:
- Ensure
panixis on$PATHand the init line is in the correct file (~/.bashrc,~/.zshrc, or~/.config/fish/config.fish). Restart your terminal orsourcethe file.