From cccc6479e509d20f082671743fa7baf2b89d029c Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 20 Mar 2023 16:26:05 +0800 Subject: Update fzf behavior --- bin/init/load-settings.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/init/load-settings.sh b/bin/init/load-settings.sh index cd31f76..3263063 100755 --- a/bin/init/load-settings.sh +++ b/bin/init/load-settings.sh @@ -39,10 +39,12 @@ PATH=$PATH:$HOME/.yarn/bin # fzf if which fzf &>/dev/null; then + export FZF_COMPLETION_OPTS='--bind=ctrl-c:print-query' + export FZF_CTRL_T_OPTS='--no-multi --bind=ctrl-c:print-query' + export FZF_CTRL_R_OPTS='--bind=ctrl-c:print-query' fzf_preview() { fzf --preview 'cat {}'; } - source ~/.fzf.${shell} &>/dev/null + source ~/.fzf.${shell} fi -export FZF_CTRL_T_OPTS="--no-multi" # Set zsh or bash if [[ $- =~ i ]]; then -- cgit v1.2.3-70-g09d2