diff options
Diffstat (limited to 'roles/shell/bash')
-rw-r--r-- | roles/shell/bash/templates/bash_profile.j2 | 1 | ||||
-rw-r--r-- | roles/shell/bash/templates/bashrc.j2 | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/roles/shell/bash/templates/bash_profile.j2 b/roles/shell/bash/templates/bash_profile.j2 index 06210fa..9b9e86c 100644 --- a/roles/shell/bash/templates/bash_profile.j2 +++ b/roles/shell/bash/templates/bash_profile.j2 | |||
@@ -4,6 +4,7 @@ | |||
4 | {% if "graphical_vt" in features.get(profile, []) %} | 4 | {% if "graphical_vt" in features.get(profile, []) %} |
5 | 5 | ||
6 | if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then | 6 | if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then |
7 | [[ -f "$HOME/.bashrc_temp" ]] && rm -f $HOME/.bashrc_temp | ||
7 | exec startx $XDG_CONFIG_HOME/xinitrc > $XDG_STATE_HOME/xsession_errors 2>&1 | 8 | exec startx $XDG_CONFIG_HOME/xinitrc > $XDG_STATE_HOME/xsession_errors 2>&1 |
8 | fi | 9 | fi |
9 | {% endif %} | 10 | {% endif %} |
diff --git a/roles/shell/bash/templates/bashrc.j2 b/roles/shell/bash/templates/bashrc.j2 index 2285d2b..99ed55f 100644 --- a/roles/shell/bash/templates/bashrc.j2 +++ b/roles/shell/bash/templates/bashrc.j2 | |||
@@ -2,6 +2,8 @@ | |||
2 | # ~/.bashrc | 2 | # ~/.bashrc |
3 | # | 3 | # |
4 | 4 | ||
5 | [[ -f "$HOME/.bashrc_temp" ]] && . $HOME/.bashrc_temp | ||
6 | |||
5 | if [ -n "$HOME/.local/bin" ]; then | 7 | if [ -n "$HOME/.local/bin" ]; then |
6 | PATH="$HOME/.local/bin:$PATH" | 8 | PATH="$HOME/.local/bin:$PATH" |
7 | fi | 9 | fi |