2
0
mirror of https://github.com/junegunn/fzf synced 2024-11-01 03:20:42 +00:00
fzf/shell
Tomas Janousek 218b3c8274 [bash-completion] Move -F/_fzf filter to __fzf_orig_completion_filter
This prevents mistakes like the one fixed by the previous commit, and
also speeds bash startup a tiny bit:

before:

    $ HISTFILE=/tmp/bashhist hyperfine 'bash --rcfile shell/completion.bash -i'
    Benchmark #1: bash --rcfile shell/completion.bash -i
      Time (mean ± σ):      22.4 ms ±   0.6 ms    [User: 28.7 ms, System: 7.8 ms]
      Range (min … max):    21.7 ms …  25.2 ms    123 runs

after:

    $ HISTFILE=/tmp/bashhist hyperfine 'bash --rcfile shell/completion.bash -i'
    Benchmark #1: bash --rcfile shell/completion.bash -i
      Time (mean ± σ):      21.2 ms ±   0.3 ms    [User: 24.9 ms, System: 6.4 ms]
      Range (min … max):    20.7 ms …  23.3 ms    132 runs
2020-11-13 02:16:54 +09:00
..
completion.bash [bash-completion] Move -F/_fzf filter to __fzf_orig_completion_filter 2020-11-13 02:16:54 +09:00
completion.zsh [completion] Make host completion handle source files without EOL 2020-10-06 20:54:42 +09:00
key-bindings.bash [fzf-tmux] Fall back to plain fzf when split failed 2020-04-03 13:23:15 +09:00
key-bindings.fish [fish] Fix parser handling of option-like args (#2208) 2020-10-12 12:58:37 +09:00
key-bindings.zsh [zsh] Keep current $BUFFER on ALT-C 2020-10-03 14:55:02 +09:00