dotfiles/dot_bash_profile

17 lines
455 B
Text
Raw Normal View History

2022-02-19 10:14:12 +00:00
#
# ~/.bash_profile
#
2022-05-03 19:40:41 +00:00
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
2022-02-19 10:14:12 +00:00
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
2022-05-03 19:40:41 +00:00
systemd-cat -t sway sway
systemctl --user stop graphical-session.target
systemctl --user unset-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
2022-02-19 10:14:12 +00:00
fi
[[ -f ~/.bashrc ]] && . ~/.bashrc