From: martin f. krafft Date: Fri, 9 May 2008 13:03:27 +0000 (+0100) Subject: fail gracefully in the absense of the aliases file X-Git-Url: https://git.madduck.net/etc/mutt.git/commitdiff_plain/a3a2e59a9cb6ad1bf4b2397d91cfebd7b00a0c31?ds=inline fail gracefully in the absense of the aliases file --- diff --git a/.mutt/muttrc b/.mutt/muttrc index 87d7502..35915bc 100644 --- a/.mutt/muttrc +++ b/.mutt/muttrc @@ -34,8 +34,6 @@ set my_confdir="~/.mutt" # 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. @@ -4445,3 +4443,8 @@ source $my_confdir/hooks 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