I often find myself in this situation:
- I start doing something in a terminal.
- I need more terminal space, so I open
tmux
. - History is gone, even the commands I wanted to run inside tmux.
How can I port over the current bash history into a new tmux session? Ideally something I can add to tmux configuration and otherwise something I can put in an alias like tmuxhist
.