Zsh shell history getting cleared automatically while using gnome-terminal(.zhistory)

Oh awesome, thanks for the help @Signalrunner! Is there a way to make the ‘show-all’ option the default when I use history command?

alias history='history 1'

You can also set ir as an alias in your ~/.zshrc

1 Like

Personally, I love, I mean loooooooooove, the fuzzy history search capabilities in the CTRL-R command of fzf.

It’s just a perfect use of fuzzy search, a match made in heaven.

put these in .zshrc

setopt appendhistory # Immediately append history instead of overwriting
setopt histignorealldups # If a new command is a duplicate, remove the older one
HISTFILE=~/.zhistory
HISTSIZE=1000
SAVEHIST=1000