Fix zsh history

This commit is contained in:
Mathis 2021-10-07 16:15:45 +02:00
parent 3e2cfb1eb3
commit 2ed347eae0
1 changed files with 10 additions and 1 deletions

11
.zshrc
View File

@ -9,6 +9,11 @@ export PATH=$PATH:/usr/local/go/bin
export GOPATH=$HOME/Projects/golang export GOPATH=$HOME/Projects/golang
export PATH=$PATH:$GOPATH/bin export PATH=$PATH:$GOPATH/bin
# History
export HISTFILE=$HOME/.zsh_history
export HISTSIZE=15000 # keep 15,000 lines in memory
export SAVEHIST=10000 # but save only 10,000 of them
# VTE # VTE
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
source /etc/profile.d/vte.sh source /etc/profile.d/vte.sh
@ -78,6 +83,7 @@ zinit snippet OMZP::git
zinit cdclear -q # <- forget completions provided up to this moment zinit cdclear -q # <- forget completions provided up to this moment
zinit light zinit-zsh/z-a-meta-plugins zinit light zinit-zsh/z-a-meta-plugins
zinit light zsh-users/zsh-history-substring-search
zinit snippet OMZ::plugins/pip/pip.plugin.zsh zinit snippet OMZ::plugins/pip/pip.plugin.zsh
zinit snippet OMZ::plugins/docker-compose/docker-compose.plugin.zsh zinit snippet OMZ::plugins/docker-compose/docker-compose.plugin.zsh
@ -86,8 +92,11 @@ zinit snippet OMZ::plugins/command-not-found/command-not-found.plugin.zsh
zinit for annexes zsh-users+fast zdharma zinit for annexes zsh-users+fast zdharma
setopt promptsubst setopt prompt_subst
zinit wait'!' lucid for \ zinit wait'!' lucid for \
OMZL::prompt_info_functions.zsh \ OMZL::prompt_info_functions.zsh \
OMZT::gentoo OMZT::gentoo
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down