-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Eshell doesn't remember history #8538
Comments
I can confirm that if I open Eshell via After running Perhaps a problem with |
@aminb are you still experiencing this on the latest develop branch? |
I just tested it. This bug is still there. |
Sorry @thornjad I've long since stopped using spacemacs, and now use my own emacs configuration. For what it's worth, eshell history works fine with vanilla emacs + my configs. |
I found the reason. Its the value of
While in normal
|
I think I found the problem. However I am not a elisp programmer, so I am not sure if my solution is the correct one. Spacemacs shell layer uses 'shell-pop' extension. In this file: in the 'shell-pop--set-exit-action' function on line 262... changing: to This changed it so that add-hook appends the function to the hook list. So now 'eshell-exit-hook' gets set to: (eshell-write-history eshell-write-last-dir-ring t shell-pop--kill-and-delete-window) So I think that what was happening is that the eshell was exiting before it had a chance to write the history. Changing the order of the hooks now allows eshell to save it's history before the frame is deleted. filed kyagi/shell-pop-el#66 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
I am still experiencing this issue but it appears there have been no responses on the issue in the upstream repo. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
I am experiencing this issue today. It's still not resolved. |
Still there and not fixed upstream maybe we can find a workaround |
this is a workaround as the upstream issue is not solved yet. See #8538
I have added a workaround to Spacemacs circumventing the bug in the ticket. The issue is indeed that the window is set before the store history calls in the shutdown hook. |
Description
Eshell doesn't remember history
Reproduction guide 🪲
M-m a s e
(start Eshell)pwd
,ls
,uname
)C-d
(exit the Eshell)M-m a s e
(start Eshell again)M-p
Observed behaviour: 👀 💔
M-p
results in displaying Empty input ring in the minibar.~/.emacs.d/.cache/eshell/
has no files)Expected behaviour: ❤️ 😄
M-p
should go back through the history.System Info 💻
Backtrace 🐾
The text was updated successfully, but these errors were encountered: