diff options
-rwxr-xr-x | mailsync | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -28,7 +28,8 @@ eval "$(grep -h -- \ "$HOME/.config/zsh/.zshenv" "$HOME/.bashrc" "$HOME/.zshrc" "$HOME/.config/zsh/.zshrc" \ "$HOME/.pam_environment" 2>/dev/null)" -export GPG_TTY="$(tty)" +GPG_TTY="$(tty)" +export GPG_TTY [ -n "$MBSYNCRC" ] && alias mbsync='mbsync -c $MBSYNCRC' || MBSYNCRC="$HOME/.config/isync/mbsyncrc" @@ -39,7 +40,10 @@ case "$(uname)" in ;; *) case "$(readlink -f /sbin/init)" in - *systemd*|*openrc*) export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus ;; + *systemd*|*openrc*) + DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus + export DBUS_SESSION_BUS_ADDRESS + ;; esac # remember if a display server is running since `ps` doesn't always contain a display pgrepoutput="$(pgrep -a X\(org\|wayland\))" |