25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

makedefault.sh 349 B

12345678910
  1. #!/bin/bash
  2. # Give this script the abstract name of an account and it will make it the default.
  3. title=$1
  4. muttdir="$HOME/.config/mutt/"
  5. muttdirsed=$(echo $muttdir | sed -e 's/\//\\\//g')
  6. grep "$muttdir"muttrc -e "^source .*accounts.*" >/dev/null && \
  7. sed -i "s/^source .*accounts.*/source ${muttdirsed}accounts\/$title.muttrc/g" "$muttdir"muttrc