瀏覽代碼

Use own config home if not set already

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

+ 4
- 2
bin/mailsync 查看文件

@@ -15,12 +15,14 @@ command -v notify-send >/dev/null || echo "Note that \`libnotify\` or \`libnotif
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
export DISPLAY=:0.0

configdir=${XDG_CONFIG_HOME:=$HOME/.config}

# For individual configurations:
[ -d "$HOME/.local/share/password-store" ] && export PASSWORD_STORE_DIR="$HOME/.local/share/password-store"

if [ -f "$HOME/.config/isync/mbsyncrc" ]; then
MBSYNC="mbsync -c \"$HOME/.config/isync/mbsyncrc\""
MBSYNCRCPATH="$HOME/.config/isync/mbsyncrc"
MBSYNC="mbsync -c \"$configdir/isync/mbsyncrc\""
MBSYNCRCPATH="$configdir/isync/mbsyncrc"
else
MBSYNC="mbsync"
MBSYNCRCPATH="$HOME/.mbsyncrc"


Loading…
取消
儲存