|
@@ -19,7 +19,7 @@ pgrep mbsync >/dev/null && { echo "mbsync is already running."; exit ;} |
|
|
# files for variable assignments. This is ugly, but there are few options that |
|
|
# files for variable assignments. This is ugly, but there are few options that |
|
|
# will work on the maximum number of machines. |
|
|
# will work on the maximum number of machines. |
|
|
eval "$(grep -h -- \ |
|
|
eval "$(grep -h -- \ |
|
|
"^\s*\(export \)\?\(MBSYNCRC\|PASSWORD_STORE_DIR\|NOTMUCH_CONFIG\|GNUPGHOME|MAILSYNC_MUTE\)=" \ |
|
|
|
|
|
|
|
|
"^\s*\(export \)\?\(MBSYNCRC\|PASSWORD_STORE_DIR\|NOTMUCH_CONFIG\|GNUPGHOME\|MAILSYNC_MUTE\)=" \ |
|
|
"$HOME/.profile" "$HOME/.bash_profile" "$HOME/.zprofile" "$HOME/.config/zsh/.zprofile" "$HOME/.zshenv" \ |
|
|
"$HOME/.profile" "$HOME/.bash_profile" "$HOME/.zprofile" "$HOME/.config/zsh/.zprofile" "$HOME/.zshenv" \ |
|
|
"$HOME/.config/zsh/.zshenv" "$HOME/.bashrc" "$HOME/.zshrc" "$HOME/.config/zsh/.zshrc" \ |
|
|
"$HOME/.config/zsh/.zshenv" "$HOME/.bashrc" "$HOME/.zshrc" "$HOME/.config/zsh/.zshrc" \ |
|
|
"$HOME/.pam_environment" 2>/dev/null)" |
|
|
"$HOME/.pam_environment" 2>/dev/null)" |
|
@@ -32,9 +32,9 @@ lastrun="${XDG_CONFIG_HOME:-$HOME/.config}/mutt/.mailsynclastrun" |
|
|
|
|
|
|
|
|
# Mute notifications or get kernel name. |
|
|
# Mute notifications or get kernel name. |
|
|
# Settings are different for MacOS (Darwin) systems. |
|
|
# Settings are different for MacOS (Darwin) systems. |
|
|
[ -z "$MAILSYNC_MUTE" ] && notify="$(uname)" || notify="no" |
|
|
|
|
|
|
|
|
[ -z "$MAILSYNC_MUTE" ] && notify="$(uname)" || notify="mute" |
|
|
case "$notify" in |
|
|
case "$notify" in |
|
|
no) |
|
|
|
|
|
|
|
|
mute) |
|
|
notify() { echo "notifications disabled" >/dev/null ;} |
|
|
notify() { echo "notifications disabled" >/dev/null ;} |
|
|
;; |
|
|
;; |
|
|
Darwin) |
|
|
Darwin) |
|
|