Browse Source

makedefault fixed

tags/v3.1
Luke 6 years ago
parent
commit
e79d940a32
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      makedefault.sh

+ 2
- 2
makedefault.sh View File

@@ -6,5 +6,5 @@ title=$1
muttdir="$HOME/.config/mutt/"
muttdirsed=$(echo $muttdir | sed -e 's/\//\\\//g')

grep "$muttdir"muttrc -e "^source .*accounts.*" >/dev/null && \
sed -i "s/^source .*accounts.*/source ${muttdirsed}accounts\/$title.muttrc/g" "$muttdir"muttrc
grep "$muttdir"personal.muttrc -e "^source .*accounts.*" >/dev/null && \
sed -i "s/^source .*accounts.*/source ${muttdirsed}accounts\/$title.muttrc/g" "$muttdir"personal.muttrc

Loading…
Cancel
Save