I found it annoying when surfing in lf with ctrl-o in zsh, it would not save the history from the session before ctrl-o.
The option setopt inc_append_history fixes it by writing every command to history before it is executed. Consider also using setopt share_history which does the same thing but also reads the history, allowing sharing history between terminal sessions.
I found it annoying when surfing in
lf
withctrl-o
in zsh, it would not save the history from the session beforectrl-o
.The option
setopt inc_append_history
fixes it by writing every command to history before it is executed. Consider also usingsetopt share_history
which does the same thing but also reads the history, allowing sharing history between terminal sessions.