瀏覽代碼

Use config variable in mw

pull/480/head
thehnm 4 年之前
父節點
當前提交
07276f5d24
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      bin/mw

+ 3
- 2
bin/mw 查看文件

@@ -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…
取消
儲存