I just installed oh-my-zsh
for the first time. I just want to know how can I modify the number of past commands that are remembered in history? Where can I set this setting?
How to increase history in oh-the-zsh
command historyoh-my-zshzsh
command historyoh-my-zshzsh
I just installed oh-my-zsh
for the first time. I just want to know how can I modify the number of past commands that are remembered in history? Where can I set this setting?
Best Answer
You can set the size of the history file zsh uses with the
SAVEHIST
variable. just put a line in your.zshrc
(found in your home directory) likeSAVEHIST=n
to save up ton
commands in your history (replacingn
with a number of course).By default, I think that both zsh and oh-my-zsh aleady has a line in your
.zshrc
that assignesSAVEHIST
, so just change the number to one of your liking.