Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My .muttrc file is starting to get quite large.

What I would prefer is to create a ~/.mutt/config directory to store various config files for the account, status bar, composition,... etc and then source them all into my main .muttrc file.

How do you do this?

share|improve this question
up vote 6 down vote accepted
  1. Create a folder ~/.mutt
  2. Split up your configuration in your folder
  3. source all the config files in your folder, i.e. (from my ~/.mutt/muttrc):


source ~/.mutt/rc
source ~/.mutt/hooks
source ~/.mutt/macros
source ~/.mutt/ml
source ~/.mutt/gnupg
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.