[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
+1
-1
@@ -9,7 +9,7 @@ shopt -s nullglob
|
|||||||
|
|
||||||
sudo apt -y update
|
sudo apt -y update
|
||||||
sudo apt -y dist-upgrade
|
sudo apt -y dist-upgrade
|
||||||
sudo apt -y install curl zsh tmux virtualenvwrapper powerline fonts-powerline python3 python3-pip python3-pynvim
|
sudo apt -y install curl zsh tmux virtualenvwrapper powerline fonts-powerline python3 python3-pip python3-pynvim fzf
|
||||||
sudo snap install --classic nvim
|
sudo snap install --classic nvim
|
||||||
./clone_and_link.sh; true
|
./clone_and_link.sh; true
|
||||||
if [ $SHELL != "/bin/zsh" ]; then
|
if [ $SHELL != "/bin/zsh" ]; then
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
sudo apt -y update
|
sudo apt -y update
|
||||||
sudo apt -y dist-upgrade
|
sudo apt -y dist-upgrade
|
||||||
sudo apt -y install curl zsh tmux virtualenvwrapper powerline fonts-powerline python3 python3-pip python3-pynvim
|
sudo apt -y install curl zsh tmux virtualenvwrapper powerline fonts-powerline python3 python3-pip python3-pynvim fzf
|
||||||
sudo snap install --classic nvim
|
sudo snap install --classic nvim
|
||||||
./clone_and_link.sh shared; true
|
./clone_and_link.sh shared; true
|
||||||
if [ $SHELL != "/bin/zsh" ]; then
|
if [ $SHELL != "/bin/zsh" ]; then
|
||||||
|
|||||||
+13
@@ -49,6 +49,19 @@ export SSH_REAL_SOCK=$SSH_AUTH_SOCK
|
|||||||
|
|
||||||
source "${ZDOTDIR:-$HOME}/.zsh/lib/interactive.zsh"
|
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"
|
export LIBVIRT_DEFAULT_URI="qemu:///system"
|
||||||
if (( ! shared_config )); then
|
if (( ! shared_config )); then
|
||||||
# Agent shells: </dev/null makes the prompt decline (exit 1) instead of blocking.
|
# Agent shells: </dev/null makes the prompt decline (exit 1) instead of blocking.
|
||||||
|
|||||||
Reference in new issue
Block a user