0

I can't make gnome terminal or any other terminal remember the commands history. Every time I close the terminal and reopen it I can't access previous commands (usually done with the up arrow key).

1

I finally did it! Apricity OS uses Zsh as shell and to enable history you have to edit the file ~/.zshrc and make it look like below:

source /usr/share/zsh/site-contrib/powerline.zsh
zstyle ':completion:*' menu select
bindkey "^R" history-incremental-pattern-search-backward
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.