summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2022-01-22 01:38:45 +0000
committerGitHub <noreply@github.com>2022-01-22 01:38:45 +0000
commitc983035d09ac60339f70616de5c7ba0fd87081e4 (patch)
treebe407f0d6cf280527a9a360adf85e984ea3d2ec7
parent037f3d26077dc7e34c526673b3a5d16218635cb8 (diff)
parent8e81135f8bb79930ed2495b90784cacc83cbb73f (diff)
Merge pull request #791 from mmcculle/edit-mailsync-grep
Check $HOME/.config/zsh/.zshenv for enviromental varibles
-rwxr-xr-xbin/mailsync3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync
index ca7411d..e939b78 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -23,7 +23,8 @@ pgrep mbsync >/dev/null && { echo "mbsync is already running."; exit ;}
eval "$(grep -h -- \
"^\s*\(export \)\?\(MBSYNCRC\|PASSWORD_STORE_DIR\|NOTMUCH_CONFIG\|GNUPGHOME\)=" \
"$HOME/.profile" "$HOME/.bash_profile" "$HOME/.zprofile" "$HOME/.config/zsh/.zprofile" "$HOME/.zshenv" \
- "$HOME/.bashrc" "$HOME/.zshrc" "$HOME/.config/zsh/.zshrc" "$HOME/.pam_environment" 2>/dev/null)"
+ "$HOME/.config/zsh/.zshenv" "$HOME/.bashrc" "$HOME/.zshrc" "$HOME/.config/zsh/.zshrc" \
+ "$HOME/.pam_environment" 2>/dev/null)"
export GPG_TTY="$(tty)"