Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.