wryun / es-shell

es: a shell with higher-order functions
http://wryun.github.io/es-shell/
Other
307 stars 25 forks source link

Read from history file at startup? #17

Closed spelufo closed 7 years ago

spelufo commented 7 years ago

With readline enabled, es is appending to my ~/.history file but doesn't load it when it starts, so the only history I can search is the one since the session start. Is there a way of making it load the rest of the history?

wryun commented 7 years ago

If you look at https://github.com/wryun/es-shell/tree/readline-history you can see it's pretty straightforward to do this with readline. Unfortunately, I haven't merged it to master yet because it needs some minor configuration tweaks (see commit message), but if you're prepared to build it yourself...

wryun commented 7 years ago

(oh, and the other issue is that doing that would probably break the odd version of editline which es supports)

spelufo commented 7 years ago

Great! Thank you