dotfiles/dot_bash_profile

16 lines
455 B
Text

#
# ~/.bash_profile
#
export $(systemctl --user show-environment)
export GPG_TTY="$TTY"
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh"
systemctl --user import-environment GPG_TTY SSH_AUTH_SOCK
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
systemd-cat -t sway sway
systemctl --user stop graphical-session.target
systemctl --user unset-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
fi
[[ -f ~/.bashrc ]] && . ~/.bashrc