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

Re: Finding the first history event of the current instance



On Jun 5, 10:47am, Christian Neukirchen wrote:
}
} I'd have expected it to print nothing, because the local shell history
} is empty?

The documentation was updated after the 5.0.8 release to clarify this:

    -L
          restricts to only local events (not from other shells, see
          SHARE_HISTORY in *Note Description of Options:: - note that
          $HISTFILE is considered local when read at startup)

At the same time, this was added:

    -I
          restricts to only internal events (not from $HISTFILE)

You want the latter, but unfortunately 5.0.8 doesn't have it.



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