[feature] use silversearcher-ag for fzf
This commit is contained in:
parent
0aafee6d9d
commit
f57e2fb8a2
|
@ -3,6 +3,7 @@
|
||||||
set -gx EDITOR nvim
|
set -gx EDITOR nvim
|
||||||
|
|
||||||
# enable fzf completion hotkey
|
# enable fzf completion hotkey
|
||||||
|
#set -gx FZF_DEFAULT_COMMAND 'ag -g ""'
|
||||||
set -U FZF_COMPLETE 0
|
set -U FZF_COMPLETE 0
|
||||||
# no line-wrapping, good for `docker ps`
|
# no line-wrapping, good for `docker ps`
|
||||||
set -gx LESS "-SRXF"
|
set -gx LESS "-SRXF"
|
||||||
|
|
|
@ -10,7 +10,7 @@ case "$PM" in
|
||||||
! which pip3 && $ROOT/python/install.sh
|
! which pip3 && $ROOT/python/install.sh
|
||||||
sudo add-apt-repository ppa:fish-shell/release-3 -y
|
sudo add-apt-repository ppa:fish-shell/release-3 -y
|
||||||
sudo apt update
|
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
|
if apt show fzf &>/dev/null; then
|
||||||
sudo apt install fzf
|
sudo apt install fzf
|
||||||
elif ! which fzf &>/dev/null; then
|
elif ! which fzf &>/dev/null; then
|
||||||
|
@ -20,7 +20,7 @@ case "$PM" in
|
||||||
;;
|
;;
|
||||||
pacman)
|
pacman)
|
||||||
! which pip && $ROOT/python/install.sh
|
! 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
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user