LukeSmithxyz / voidrice

My dotfiles (deployed by LARBS)
GNU General Public License v3.0
4.26k stars 1.22k forks source link

Save command to Zsh history before it is executed #1409

Closed fennomaani closed 3 months ago

fennomaani commented 3 months ago

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.