summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roles/shell/bash/templates/bashrc.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/shell/bash/templates/bashrc.j2 b/roles/shell/bash/templates/bashrc.j2
index 91334b7..fabe53f 100644
--- a/roles/shell/bash/templates/bashrc.j2
+++ b/roles/shell/bash/templates/bashrc.j2
@@ -90,6 +90,11 @@ _tmux_dev() {
90 done 90 done
91} 91}
92complete -o filenames -F _tmux_dev tmux_dev 92complete -o filenames -F _tmux_dev tmux_dev
93
94if [ -n "$TMUX" ]; then
95 TMUX_SESSION_NAME=$(tmux display-message -p "#S")
96 export HISTFILE="$XDG_STATE_HOME/bash/tmux_${TMUX_SESSION_NAME}_history"
97fi
93##### /Fretlink 98##### /Fretlink
94{% endif %} 99{% endif %}
95 100