Sfoglia il codice sorgente

makedefault fixed

tags/v3.1
Luke 6 anni fa
parent
commit
e79d940a32
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      makedefault.sh

+ 2
- 2
makedefault.sh Vedi 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

Caricamento…
Annulla
Salva