Skip to content

Instantly share code, notes, and snippets.

@benja2998
Last active August 8, 2026 20:02
Show Gist options
  • Select an option

  • Save benja2998/69b8979a30b2f51dd74ecea62ab5a4ce to your computer and use it in GitHub Desktop.

Select an option

Save benja2998/69b8979a30b2f51dd74ecea62ab5a4ce to your computer and use it in GitHub Desktop.
How to get shared history in Eshell, eshell shared history across sessions
;;; Shared history in the eshell
(require 'eshell)
(setq eshell-history-append t)
(setq eshell-save-history-on-exit nil)
(setq eshell-hist-ignoredups t)
(add-hook 'eshell-post-command-hook (lambda ()
(eshell-write-history eshell-history-file-name t)
(eshell-read-history eshell-history-file-name t)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment