summaryrefslogtreecommitdiff
path: root/roles/shell/bash/templates/bash_profile.j2
blob: 8ffd818a57714441b94cc3d66afdf2da5e1db44e (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 "$XDG_STATE_HOME/bash/bashrc_temp" ]] && rm -f $XDG_STATE_HOME/bash/bashrc_temp
  exec startx $XDG_CONFIG_HOME/xinitrc > $XDG_STATE_HOME/xsession_errors 2>&1
fi
{% endif %}