For years I've been using a zsh script that causes a pushd to implicitly happen everytime you change directories. The script also sets up 'b' and 'f' aliases, short for backwards and forwards, that move you up and down the stack, similar to the back and forward buttons in a web browser. Example session:
/etc $ cd /tmp
/tmp $ cd /bin
/bin $ b
/tmp $ b
/etc $ f
/tmp $ f
/bin $
I've found it incredibly useful and I was wondering, what's the best way to set this up in eshell?
Edit: See the code I went with here, slight modification of below: https://gist.github.com/jgarvin/0627ed76a773ade222f6