Browse Source

* 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

master
dimti 1 month ago
parent
commit
48bd653085
  1. 2
      .shell-history

2
.shell-history

@ -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

Loading…
Cancel
Save