How much history will be saved in iTerm2 Shell Int

2019-05-29 21:42发布

问题:

Background:

I installed shell integration in iTerm2 and enabled saving all command history to disk so it persists between sessions (Preferences > General > Save copy/paste and command history to disk).

Questions:

A) Is there is a limit to how much history will be stored? Does it follow the value assigned to the HISTFILESIZE environment variable, or is it controlled some other way, or limited by default?

B) The history in the toolbelt contains additional information like the working directory at the time the command was executed (printed on the cli when you option+double click the history item). Where does this information come from?

The documentation doesn't address this at all and I couldn't find any answers on google. Does anyone know? Thanks in advance!