-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not remembering history past session #645
Labels
Comments
.zshrc
|
Zsh doesn't persist history across sessions by default. Take a look here or Google around for how to configure zsh to persist history across sessions: https://unix.stackexchange.com/questions/389881/history-isnt-preserved-in-zsh |
Try this! # inside .zshrc
setopt APPEND_HISTORY
setopt SHARE_HISTORY
HISTFILE=$HOME/.zhistory
SAVEHIST=1000
HISTSIZE=999
setopt HIST_EXPIRE_DUPS_FIRST
setopt EXTENDED_HISTORY source: https://dev.to/rossijonas/how-to-set-up-history-based-autocompletion-in-zsh-k7o |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Autocomplete history is not being written - I get autocompletion of commands inside my session but when I exit zsh and return, everything is forgotten.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect auto suggest to persist across sessions.
I have deleted both my
.bash_history
and.zsh_history
- permissions wererw
.They are not being re-created as I use zsh.
Screenshots
Desktop
5.8
Additional context
The text was updated successfully, but these errors were encountered: