This repository contains bash completion scripts for NeoMutt and its configure script.
Copyright (C) 2026 Richard Russon <rich@flatcap.org>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
See LICENSE.md for the full license text.
- bash/neomutt.bash - Bash completion for the NeoMutt email client
- bash/configure.bash - Bash completion for NeoMutt's autosetup (./configure) script
Copy the completion scripts to your bash completion directory:
sudo cp bash/neomutt.bash /usr/share/bash-completion/completions/neomutt
sudo cp bash/configure.bash /usr/share/bash-completion/completions/configureFor a user-specific installation, copy to your local completion directory:
mkdir -p ~/.local/share/bash-completion/completions
cp bash/neomutt.bash ~/.local/share/bash-completion/completions/neomutt
cp bash/configure.bash ~/.local/share/bash-completion/completions/configureTo use the completions immediately without restarting your shell:
source bash/neomutt.bash
source bash/configure.bashYou can also add these lines to your ~/.bashrc file for automatic loading.
The neomutt completion script provides intelligent completion for:
- Command-line options (both short and long forms)
- Email addresses from aliases, query commands, and system users
- File paths with NeoMutt shortcuts (
=folder,+folder,!spool) - Configuration options for
-Q/--queryflag - Help topics, debug levels, and mailbox types
The configure completion script provides completion for:
- All configuration flags (
--everything,--asan,--gnutls, etc.) - Options with values (
--prefix=,--with-ssl=, etc.) - Debug options (
--debug-logging,--debug-color, etc.)
- Bash 4.0 or later
- bash-completion package (provides helper functions)
- NeoMutt (for neomutt.bash to function properly)
- NeoMutt: https://neomutt.org
- Repository: https://github.com/neomutt/shell-completion