diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2023-03-20 16:26:05 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2023-03-20 16:26:05 +0800 |
commit | cccc6479e509d20f082671743fa7baf2b89d029c (patch) | |
tree | 8476408013d95278c3e4372299a2047f1a75c3ee | |
parent | 4e5eb615606bef1619071ef89d4b34c20a7ac625 (diff) |
Update fzf behavior
-rwxr-xr-x | bin/init/load-settings.sh | 6 |
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 |
41 | if which fzf &>/dev/null; then | 41 | if 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} |
44 | fi | 47 | fi |
45 | export FZF_CTRL_T_OPTS="--no-multi" | ||
46 | 48 | ||
47 | # Set zsh or bash | 49 | # Set zsh or bash |
48 | if [[ $- =~ i ]]; then | 50 | if [[ $- =~ i ]]; then |