add special case for termux to reverse history search
This commit is contained in:
parent
a774407da2
commit
9c59097a83
11
zshrc
11
zshrc
|
@ -1,4 +1,5 @@
|
||||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
|
|
||||||
# Initialization code that may require console input (password prompts, [y/n]
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
# confirmations, etc.) must go above this block; everything else may go below.
|
# 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
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
|
@ -87,10 +88,12 @@ fi
|
||||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
|
|
||||||
# ensure histdb gets ctrl-r for history
|
# ensure histdb gets ctrl-r for history
|
||||||
#bindkey '^R' histdb-fzf-widget
|
if grep -q "Android" <<< `uname -a`; then
|
||||||
#source ~/.zplug/repos/larkery/zsh-histdb/histdb-interactive.zsh
|
source ~/.zplug/repos/larkery/zsh-histdb/histdb-interactive.zsh
|
||||||
#bindkey '^R' _histdb-isearch
|
bindkey '^R' _histdb-isearch
|
||||||
bindkey '^R' histdb-skim-widget
|
else
|
||||||
|
bindkey '^R' histdb-skim-widget
|
||||||
|
fi
|
||||||
|
|
||||||
# Fix home/end/del silly
|
# Fix home/end/del silly
|
||||||
if [[ "$TERM" != emacs ]]; then
|
if [[ "$TERM" != emacs ]]; then
|
||||||
|
|
Loading…
Reference in a new issue