]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blame - roles/shell/bash/templates/bash_profile.j2
Move bashrc temporary file to state dir
[perso/Immae/Config/Ansible.git] / roles / shell / bash / templates / bash_profile.j2
CommitLineData
397c4fed
IB
1# Some variables are loaded via pam (see .config/pam_environment)
2
3[[ -f ~/.bashrc ]] && . ~/.bashrc
4{% if "graphical_vt" in features.get(profile, []) %}
5
6if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
a19180df 7 [[ -f "$XDG_STATE_HOME/bash/bashrc_temp" ]] && rm -f $XDG_STATE_HOME/bash/bashrc_temp
397c4fed
IB
8 exec startx $XDG_CONFIG_HOME/xinitrc > $XDG_STATE_HOME/xsession_errors 2>&1
9fi
10{% endif %}