clean up and documentation

This commit is contained in:
Luke
2018-02-11 18:24:21 -07:00
parent 4892aeb3ef
commit 794cefe2a6
3 changed files with 22 additions and 12 deletions

10
autoconf/makedefault.sh Executable file
View File

@ -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