* 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:
@ -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
|
||||||
|
Reference in New Issue
Block a user