Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: command recall



> On Feb 6, 2021, at 11:36 AM, Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
> 
> I have:
> 
> INC_APPEND_HISTORY
> SHARE_HISTORY

There is no need to enable both of these; SHARE_HISTORY alone is
sufficient. The zshoptions(1) man page makes this pretty clear.

> ... set and my up arrow is:
> bindkey "\e[A" history-beginning-search-backward
> 
> When I type '$ history' what happens in one terminal is immediately shown in the history list in any other terminal as I'd expect, however the up arrow key does not show the most recent global command.  If I type 'history' in some terminal and then hit the up arrow, it is now the most recent command but not otherwise.  Can I get up arrow to be up to the moment the same way that 'history' is?

You don't have to actually run a command; you can just hit Return
at an empty prompt.

vq



Messages sorted by: Reverse Date, Date, Thread, Author