-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bash history restore #318
base: master
Are you sure you want to change the base?
bash history restore #318
Conversation
@javiplx interesting. I'm using the following with git master and it works splendidly:
My histories are always restored properly. Just wondering why this change would make this any better. |
Maybe if you reorder panes, or delete some but the last one, or many other changes in the layout, you'll notice that your history is not so well restored. |
Thanks alot, but make sure that ~/.bash_history.d/ exists as a folder :) |
The changes basically replace the use of pane_index by pane_id. This guarantees that the environment variable
TMUX_PANE
is consistent across restores, and allows to use it as index to get separate history files for different panes.I have this on my
.bashrc
, to set the right history filename in tmux and to update it on every commandMain problem was restoring directory & content of the very first pane (`%0'), but I've included an alias for that.