Does OhMyBash change/flush my .bash_history
by default?
#570
Answered
by
akinomyoga
mehdiMj-ir
asked this question in
Q&A
-
I look at
before |
Beta Was this translation helpful? Give feedback.
Answered by
akinomyoga
May 11, 2024
Replies: 1 comment
-
No. By default, Oh My Bash configures the unlimited history size by setting empty strings to
What would you like to achieve?
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mehdiMj-ir
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No. By default, Oh My Bash configures the unlimited history size by setting empty strings to
HISTSIZE
andHISTFILESIZE
.What would you like to achieve?
~/.bash_history
, you don't have to do anything. Oh My Bash sets empty strings toHISTSIZE
andHISTFILESIZE
so the history will not be truncated.Or, even if you don't touch
HISTSIZE
andHISTFILESIZE
at all, is your~/.bash_history
truncated? In such a case, what is the result of the commanddeclare -p HISTSIZE HISTFILESIZE
in an interactive session?~/.bash_history
, you need to setHISTSIZE
andHISTFILESIZE
to the