Skip to content

Commit

Permalink
Fix history
Browse files Browse the repository at this point in the history
  • Loading branch information
tdeebswihart committed Jun 3, 2020
1 parent 5461af5 commit 5ebd8d7
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions zsh/history.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,8 @@ if test -d "$HOME/.zsh/zsh-autosuggestions"; then
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
fi

source ~/.zsh-histdb/histdb-interactive.zsh
bindkey '^r' _histdb-isearch

if test -d "$HOME/.zsh/zsh-autosuggestions"; then
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh

export ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
fi

if test -d "$HOME/.zsh-histdb"; then
export HISTDB_FILE="$HOME/.zsh-history.db"
source "$HOME/.zsh-histdb/sqlite-history.zsh"
export HISTDB_FILE="$HOME/.zsh-history.db"
autoload -Uz add-zsh-hook
Expand All @@ -38,4 +30,13 @@ group by commands.argv order by count(*) desc limit 1"
}

export ZSH_AUTOSUGGEST_STRATEGY=(histdb_top_here)
source ~/.zsh-histdb/histdb-interactive.zsh
bindkey '^r' _histdb-isearch

if test -d "$HOME/.zsh/zsh-autosuggestions"; then
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh

export ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20
fi

fi

0 comments on commit 5ebd8d7

Please sign in to comment.