add special case for termux to reverse history search

This commit is contained in:
KemoNine 2022-05-19 22:46:45 -04:00
parent a774407da2
commit 9c59097a83
1 changed files with 7 additions and 4 deletions

11
zshrc
View File

@ -1,4 +1,5 @@
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
@ -87,10 +88,12 @@ fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# ensure histdb gets ctrl-r for history
#bindkey '^R' histdb-fzf-widget
#source ~/.zplug/repos/larkery/zsh-histdb/histdb-interactive.zsh
#bindkey '^R' _histdb-isearch
bindkey '^R' histdb-skim-widget
if grep -q "Android" <<< `uname -a`; then
source ~/.zplug/repos/larkery/zsh-histdb/histdb-interactive.zsh
bindkey '^R' _histdb-isearch
else
bindkey '^R' histdb-skim-widget
fi
# Fix home/end/del silly
if [[ "$TERM" != emacs ]]; then