-
Notifications
You must be signed in to change notification settings - Fork 36
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
Multiple shells in the same folder do not share history #27
Comments
Have you set the following? setopt inc_append_history
setopt share_history |
Yes and no:
|
I think this is the same general problem as #21 (comment). |
I am pretty sure this used to work fine, and AFAIK is still works on older versions of zsh with the current implementation. @CyberShadow if your new implementation does not lose features compared to the current one could you open a PR so we could discuss it there? |
Frankly I have no idea if it does, it definitely needs wider testing before we could say that it satisfies assumptions like that. It started out as a personal hack, and only after some non-trivial time investment to get it working the way I wanted that I realized that it could be useful for a wider audience. |
Also, thank you for your work on this script! :) |
Your branch kind of works. If I type |
You have to hit RET to get ZSH to reload history. As far as I know, this is true even without any per-directory history or other history customizations.
Could you please describe this problem in more detail and how to reproduce it? FWIW, I tested with |
Shell 1:
Shell 2:
This does not share the history in local history mode. |
According to the docs |
Hi @jimhester @CyberShadow , I also encounter this issue and after comparing the commit of #21 (comment) and the latest master branch, I ported the CyberShadow@b8e7a96 to the master branch #55 and that fixes the issue for me, can you take a look? |
How to reproduce the problem
echo hello
.echo world
.What happens
Each shell does not contain the history of the other, albeit them being in the same folder. Sometimes, toggling to global and back makes the entries appear in the history, but a little in the wrong order.
What should happen
All shells in the same folder have a shared history.
The text was updated successfully, but these errors were encountered: