]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/shell/bash/templates/bash_profile.j2
Add a temporary bashrc when updating pam_environment
[perso/Immae/Config/Ansible.git] / roles / shell / bash / templates / bash_profile.j2
index 06210fabb3c99331003b3ea613e6a40a8ea3c32b..9b9e86c9df32bdbe80ab15988e9f14d241d146a2 100644 (file)
@@ -4,6 +4,7 @@
 {% 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 %}