]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blame - roles/shell/bash/templates/bash_profile.j2
Some fixes
[perso/Immae/Config/Ansible.git] / roles / shell / bash / templates / bash_profile.j2
CommitLineData
397c4fed 1# Some variables are loaded via pam (see .config/pam_environment)
853c1445
IB
2# This file is loaded thanks to as line in /etc/profile
3# test "$BASH" && test -r "$XDG_CONFIG_HOME/bash/bash_profile" && . $XDG_CONFIG_HOME/bash/bash_profile
397c4fed 4
386f9271
IB
5# Loaded by /etc/profile already
6# [[ -f $XDG_CONFIG_HOME/bash/bashrc ]] && . $XDG_CONFIG_HOME/bash/bashrc
397c4fed
IB
7{% if "graphical_vt" in features.get(profile, []) %}
8
44c40b43 9if [[ ! $DISPLAY && $XDG_VTNR -eq {{ lookup('env', "XDG_VTNR") | default(1, true) }} ]]; then
a19180df 10 [[ -f "$XDG_STATE_HOME/bash/bashrc_temp" ]] && rm -f $XDG_STATE_HOME/bash/bashrc_temp
397c4fed
IB
11 exec startx $XDG_CONFIG_HOME/xinitrc > $XDG_STATE_HOME/xsession_errors 2>&1
12fi
13{% endif %}