Starting a new eshell in the same directory should be sufficient. https://old.reddit.com/r/emacs/comments/135oyr6/_/jitqyvq