]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blobdiff - roles/shell/bash/templates/bash_profile.j2
Make bash xdg-compliant
[perso/Immae/Config/Ansible.git] / roles / shell / bash / templates / bash_profile.j2
index 8ffd818a57714441b94cc3d66afdf2da5e1db44e..4bcd09cb9d854f9a6b3df9013362b0cabbe46cf6 100644 (file)
@@ -1,6 +1,8 @@
 # Some variables are loaded via pam (see .config/pam_environment)
+# This file is loaded thanks to as line in /etc/profile
+# test "$BASH" && test -r "$XDG_CONFIG_HOME/bash/bash_profile" && . $XDG_CONFIG_HOME/bash/bash_profile
 
-[[ -f ~/.bashrc ]] && . ~/.bashrc
+[[ -f $XDG_CONFIG_HOME/bash/bashrc ]] && . $XDG_CONFIG_HOME/bash/bashrc
 {% if "graphical_vt" in features.get(profile, []) %}
 
 if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then