From 48bd653085aad173157d51a4cab3f4a62f76871d Mon Sep 17 00:00:00 2001 From: dimti Date: Mon, 11 Nov 2024 13:19:26 +0300 Subject: [PATCH] * 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 --- .shell-history | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.shell-history b/.shell-history index 28b9845..6a434dc 100644 --- a/.shell-history +++ b/.shell-history @@ -8,7 +8,7 @@ fi # Each terminal's history will be stored in # its own file if [ ! -z "${TMUX_PANE}" ]; then - HISTSUFFIX="${TMUX_PANE}" + HISTSUFFIX=$(tmux display-message -p '#S#W' | sha256sum | cut -d' ' -f1) else HISTSUFFIX=`tty | sed 's/\///g;s/^dev//g'` fi