diff options
Diffstat (limited to 'autoconf')
-rwxr-xr-x | autoconf/makedefault.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/autoconf/makedefault.sh b/autoconf/makedefault.sh new file mode 100755 index 0000000..e8b1536 --- /dev/null +++ b/autoconf/makedefault.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Give this script the abstract name of an account and it will make it the default. + +title=$1 +muttdir="$HOME/.config/mutt/" +muttdirsed=$(echo $muttdir | sed -e 's/\//\\\//g') + +grep "$muttdir"personal.muttrc -e "^source .*accounts.*" >/dev/null && \ + sed -i "s/^source .*accounts.*/source ${muttdirsed}accounts\/$title.muttrc/g" "$muttdir"personal.muttrc |