summaryrefslogtreecommitdiff
path: root/roles/shell/bash/templates/bash_profile.j2
blob: 9b9e86c9df32bdbe80ab15988e9f14d241d146a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# Some variables are loaded via pam (see .config/pam_environment)

[[ -f ~/.bashrc ]] && . ~/.bashrc
{% if "graphical_vt" in features.get(profile, []) %}

if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
  [[ -f "$HOME/.bashrc_temp" ]] && rm -f $HOME/.bashrc_temp
  exec startx $XDG_CONFIG_HOME/xinitrc > $XDG_STATE_HOME/xsession_errors 2>&1
fi
{% endif %}