]> git.madduck.net Git - etc/mutt.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

fail gracefully in the absense of the aliases file
authormartin f. krafft <madduck@madduck.net>
Fri, 9 May 2008 13:03:27 +0000 (14:03 +0100)
committermartin f. krafft <madduck@madduck.net>
Fri, 9 May 2008 13:03:27 +0000 (14:03 +0100)
.mutt/muttrc

index 87d75022e42c1059c4a9c8f42f7693eeb65913a4..35915bc528639afb2e4e26f8b4e28068f7df3b3f 100644 (file)
@@ -34,8 +34,6 @@ set my_confdir="~/.mutt"
 # Type: path
 # Default: "~/.muttrc"
 # 
 # Type: path
 # Default: "~/.muttrc"
 # 
-set alias_file="$my_confdir/aliases"
-source $my_confdir/aliases
 # 
 # The default file in which to save aliases created by the 
 # ``create-alias'' function.
 # 
 # The default file in which to save aliases created by the 
 # ``create-alias'' function.
@@ -4445,3 +4443,8 @@ source $my_confdir/hooks
 
 set my_mailboxes = `ls ~/.var/offlineimap/mailboxes 2>/dev/null || echo /dev/null`
 source $my_mailboxes
 
 set my_mailboxes = `ls ~/.var/offlineimap/mailboxes 2>/dev/null || echo /dev/null`
 source $my_mailboxes
+
+# this sucks a bit since we hardcode ~/.mutt instead of using $my_confdir, but
+# apparently we can't expand that mutt variable for the subshell...
+set alias_file = `ls ~/.mutt/aliases 2>/dev/null || echo /dev/null`
+source $alias_file