You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dotfiles/dot_bash_profile

16 lines
455 B

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