diff options
author | zachir <zachir@librem.one> | 2025-08-30 09:49:43 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2025-08-30 09:49:43 -0500 |
commit | 9e4558b7be8ee49969302b09f04037f7800b47aa (patch) | |
tree | 938a216e5f55f7ab32393e51eb7287824a857630 /mailsync | |
parent | c77ba40391840191296134a0d20a3135b358c857 (diff) |
Separate declaration and export
Diffstat (limited to 'mailsync')
-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\))" |