X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FAnsible.git;a=blobdiff_plain;f=roles%2Fshell%2Fbash%2Ftemplates%2Fbash_profile.j2;h=4bcd09cb9d854f9a6b3df9013362b0cabbe46cf6;hp=8ffd818a57714441b94cc3d66afdf2da5e1db44e;hb=853c14457ef51fbca58f9c4fb5c1a255e68d7c87;hpb=1a48017dde54325c5619f45f925478e7c3143ba8 diff --git a/roles/shell/bash/templates/bash_profile.j2 b/roles/shell/bash/templates/bash_profile.j2 index 8ffd818..4bcd09c 100644 --- a/roles/shell/bash/templates/bash_profile.j2 +++ b/roles/shell/bash/templates/bash_profile.j2 @@ -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