Browse Source

Use config variable in mw

pull/480/head
thehnm 4 years ago
parent
commit
07276f5d24
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      bin/mw

+ 3
- 2
bin/mw View File

@@ -16,8 +16,9 @@ maildir="$HOME/.local/share/mail" # Location of mail storage
namere="^[a-z_][a-z0-9_-]*$" # Regex to ensure viable username
emailre=".\+@.\+\\..\+" # Regex to confirm valid email address
muttshare="$prefix/share/mutt-wizard"
[ -d "$HOME/.config/isync" ] && mkdir -p $HOME/.config/isync
mbsyncrc="$HOME/.config/isync/mbsyncrc"
confighome=${XDG_CONFIG_HOME:=$HOME/.config} # Use already defined directory for config files or use default one
[ -d "$confighome/isync" ] && mkdir -p "$confighome"/isync
mbsyncrc="$confighome/isync/mbsyncrc"
mwconfig="$muttshare/mutt-wizard.muttrc"
cachedir="$HOME/.cache/mutt-wizard"
muttrc="$muttdir/muttrc"


Loading…
Cancel
Save