From f57e2fb8a2f89fa0572068ce22e737c0be729ccb Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 29 Oct 2020 16:08:28 +0800 Subject: [PATCH] [feature] use silversearcher-ag for fzf --- fish/config/config.fish | 1 + fish/install.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fish/config/config.fish b/fish/config/config.fish index ac15d12..cc7a03e 100644 --- a/fish/config/config.fish +++ b/fish/config/config.fish @@ -3,6 +3,7 @@ set -gx EDITOR nvim # enable fzf completion hotkey +#set -gx FZF_DEFAULT_COMMAND 'ag -g ""' set -U FZF_COMPLETE 0 # no line-wrapping, good for `docker ps` set -gx LESS "-SRXF" diff --git a/fish/install.sh b/fish/install.sh index ecf8618..12400a4 100755 --- a/fish/install.sh +++ b/fish/install.sh @@ -10,7 +10,7 @@ case "$PM" in ! which pip3 && $ROOT/python/install.sh sudo add-apt-repository ppa:fish-shell/release-3 -y sudo apt update - sudo apt install fish libnotify-bin xdotool -y + sudo apt install fish libnotify-bin xdotool silversearcher-ag -y if apt show fzf &>/dev/null; then sudo apt install fzf elif ! which fzf &>/dev/null; then @@ -20,7 +20,7 @@ case "$PM" in ;; pacman) ! which pip && $ROOT/python/install.sh - sudo pacman -S --needed --needed fish xdotool fzf + sudo pacman -S --needed --needed fish xdotool fzf the_silver_searcher ;; esac