* history bash suffix in tmux windows now based on session and window name, because the same tmux pane has different ids after add windows or sessions - it defies any logic

This commit is contained in:
2024-11-11 13:19:26 +03:00
parent 3590e4d11f
commit 48bd653085

View File

@ -8,7 +8,7 @@ fi
# Each terminal's history will be stored in # Each terminal's history will be stored in
# its own file # its own file
if [ ! -z "${TMUX_PANE}" ]; then if [ ! -z "${TMUX_PANE}" ]; then
HISTSUFFIX="${TMUX_PANE}" HISTSUFFIX=$(tmux display-message -p '#S#W' | sha256sum | cut -d' ' -f1)
else else
HISTSUFFIX=`tty | sed 's/\///g;s/^dev//g'` HISTSUFFIX=`tty | sed 's/\///g;s/^dev//g'`
fi fi