1
0
Fork 0
dotfiles/dot_bash_profile

17 lines
455 B
Plaintext

#
# ~/.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