diff options
| author | Luke <luke@lukesmith.xyz> | 2018-02-11 10:16:08 -0700 | 
|---|---|---|
| committer | Luke <luke@lukesmith.xyz> | 2018-02-11 10:16:08 -0700 | 
| commit | 50e0b5b8986676b1e74b35b86b3e93df7a8c8b97 (patch) | |
| tree | 29c50ebbc2c9823d9c24ec91a2c8d9c9862655ca | |
| parent | bdc062bf1d5542875285e1d4afea6e280b6377eb (diff) | |
personal.muttrc added for easy manipulation
| -rwxr-xr-x | mutt_install.sh | 8 | ||||
| -rw-r--r-- | personal.muttrc | 8 | 
2 files changed, 12 insertions, 4 deletions
| diff --git a/mutt_install.sh b/mutt_install.sh index 9813470..8ec9e34 100755 --- a/mutt_install.sh +++ b/mutt_install.sh @@ -64,7 +64,7 @@ replacement="  	/$delet/d"  # Gets the first unused shortcut number in the muttrc and puts it in $idnum. -cat "$muttdir"muttrc | grep i[0-9] | awk '{print $3}' | sed -e 's/i//g' > /tmp/mutt_used +cat "$muttdir"personal.muttrc | grep i[0-9] | awk '{print $3}' | sed -e 's/i//g' > /tmp/mutt_used  echo -e "1\n2\n3\n4\n5\n6\n7\n8\n9" > /tmp/mutt_all_possible  idnum=$(diff /tmp/mutt_all_possible /tmp/mutt_used | sed -n 2p | awk '{print $2}') @@ -82,7 +82,7 @@ addAccount() {  	# Add the mutt profile.  	cat "$muttdir"autoconf/mutt_profile | sed -e "$replacement" > "$muttdir"accounts/$title.muttrc  	# Add a numbered shortcut in the muttrc -	echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source "$muttdir"accounts/$title.muttrc<enter><change-folder>!<enter>'" >> "$muttdir"muttrc +	echo "macro index,pager i$idnum '<sync-mailbox><enter-command>source "$muttdir"accounts/$title.muttrc<enter><change-folder>!<enter>'" >> "$muttdir"personal.muttrc  	# Adding directory structure for cache.  	mkdir -p "$muttdir"accounts/$title/cache/bodies "$muttdir"accounts/$title/cache/headers @@ -91,8 +91,8 @@ addAccount() {  	sed -i "s/^accounts =.*[a-zA-Z]$/&, $title/g;s/^accounts =$/accounts = $title/g" ~/.offlineimaprc  	# Makes account default if there is no default account. -	grep "$muttdir"muttrc -e "^source .*accounts.*" >/dev/null && echo there || \ -	echo "source ${muttdir}accounts/$title.muttrc" >> "$muttdir"muttrc ;} +	grep "$muttdir"personal.muttrc -e "^source .*accounts.*" >/dev/null && echo there || \ +	echo "source ${muttdir}accounts/$title.muttrc" >> "$muttdir"personal.muttrc ;}  addAccount  clear diff --git a/personal.muttrc b/personal.muttrc new file mode 100644 index 0000000..67da34b --- /dev/null +++ b/personal.muttrc @@ -0,0 +1,8 @@ +# vim: filetype=muttrc + +# This file is where the wizard will output +# information on which file to treat as default +# and shortcut bindings for jumping from account to account. + +# You can edit this manually if you know what you're doing. + | 
