We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74d9112 + 7f5fa4b commit 3606e4fCopy full SHA for 3606e4f
docs/restoring_bash_history.md
@@ -19,13 +19,13 @@ mkdir -p "${HISTS_DIR}"
19
if [ -n "${TMUX_PANE}" ]; then
20
21
# Check if we've already set this pane title
22
- pane_id=$(tmux display-message -p '#{pane_title}')
+ pane_id=$(tmux display -pt "${TMUX_PANE:?}" "#{pane_title}")
23
if [[ $pane_id != "$pane_id_prefix"* ]]; then
24
25
# if not, set it to a random ID
26
random_id=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 16)
27
printf "\033]2;$pane_id_prefix$random_id\033\\"
28
29
fi
30
31
# use the pane's random ID for the HISTFILE
0 commit comments