diff options
Diffstat (limited to 'roles/shell/bash/templates/bash_profile.j2')
-rw-r--r-- | roles/shell/bash/templates/bash_profile.j2 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/shell/bash/templates/bash_profile.j2 b/roles/shell/bash/templates/bash_profile.j2 new file mode 100644 index 0000000..06210fa --- /dev/null +++ b/roles/shell/bash/templates/bash_profile.j2 | |||
@@ -0,0 +1,9 @@ | |||
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 | |||
6 | if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then | ||
7 | exec startx $XDG_CONFIG_HOME/xinitrc > $XDG_STATE_HOME/xsession_errors 2>&1 | ||
8 | fi | ||
9 | {% endif %} | ||