From a3a2e59a9cb6ad1bf4b2397d91cfebd7b00a0c31 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Fri, 9 May 2008 14:03:27 +0100 Subject: [PATCH] fail gracefully in the absense of the aliases file --- .mutt/muttrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.39.2