[ZSH] fzf history search on servers
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
afd4b439c2
commit
aed2f4c5df
3 files changed
+15
-2
No files matched your search
+13
@@ -49,6 +49,19 @@ export SSH_REAL_SOCK=$SSH_AUTH_SOCK
|
||||
|
||||
source "${ZDOTDIR:-$HOME}/.zsh/lib/interactive.zsh"
|
||||
|
||||
# fzf keys (Ctrl-R/Ctrl-T/Alt-C, **<Tab>); after antidote, whose vi-mode rebinds ^R.
|
||||
# --zsh needs fzf >= 0.48; older apt builds ship the scripts instead.
|
||||
if (( $+commands[fzf] && ! shared_config )); then
|
||||
if _fzf_init=$(fzf --zsh 2>/dev/null); then
|
||||
eval "$_fzf_init"
|
||||
else
|
||||
for _fzf_init in /usr/share/doc/fzf/examples/{key-bindings,completion}.zsh; do
|
||||
[[ -r $_fzf_init ]] && source $_fzf_init
|
||||
done
|
||||
fi
|
||||
unset _fzf_init
|
||||
fi
|
||||
|
||||
export LIBVIRT_DEFAULT_URI="qemu:///system"
|
||||
if (( ! shared_config )); then
|
||||
# Agent shells: </dev/null makes the prompt decline (exit 1) instead of blocking.
|
||||
|
||||
Reference in new issue
Block a user