aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2023-03-20 16:26:05 +0800
committerHsieh Chin Fan <pham@topo.tw>2023-03-20 16:26:05 +0800
commitcccc6479e509d20f082671743fa7baf2b89d029c (patch)
tree8476408013d95278c3e4372299a2047f1a75c3ee
parent4e5eb615606bef1619071ef89d4b34c20a7ac625 (diff)
Update fzf behavior
-rwxr-xr-xbin/init/load-settings.sh6
1 files 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
39 39
40# fzf 40# fzf
41if which fzf &>/dev/null; then 41if which fzf &>/dev/null; then
42 export FZF_COMPLETION_OPTS='--bind=ctrl-c:print-query'
43 export FZF_CTRL_T_OPTS='--no-multi --bind=ctrl-c:print-query'
44 export FZF_CTRL_R_OPTS='--bind=ctrl-c:print-query'
42 fzf_preview() { fzf --preview 'cat {}'; } 45 fzf_preview() { fzf --preview 'cat {}'; }
43 source ~/.fzf.${shell} &>/dev/null 46 source ~/.fzf.${shell}
44fi 47fi
45export FZF_CTRL_T_OPTS="--no-multi"
46 48
47# Set zsh or bash 49# Set zsh or bash
48if [[ $- =~ i ]]; then 50if [[ $- =~ i ]]; then