Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/junegunn/fzf. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Dec 05, 2020
  2. Dec 04, 2020
  3. Dec 03, 2020
  4. Nov 25, 2020
  5. Nov 24, 2020
  6. Nov 19, 2020
  7. Nov 17, 2020
  8. Nov 15, 2020
  9. Nov 14, 2020
  10. Nov 13, 2020
    • Tomas Janousek's avatar
    • Tomas Janousek's avatar
      [bash-completion] Optimize __fzf_orig_completion_filter · ef2c29d5
      Tomas Janousek authored
      Commit d4ad4a25 slowed loading of completion.bash significantly (on my
      laptop from 10 ms to 30 ms), then 54891d11 improved that (to 20 ms) but
      it still stands out as the heavy part of my .bashrc.
      
      Rewriting __fzf_orig_completion_filter to pure bash without forking to
      sed/awk brings this back under 10 ms.
      
      before:
      
          $ 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
      
      after:
      
          $ HISTFILE=/tmp/bashhist hyperfine 'bash --rcfile shell/completion.bash -i'
          Benchmark #1: bash --rcfile shell/completion.bash -i
            Time (mean ± σ):       9.6 ms ±   0.3 ms    [User: 8.0 ms, System: 2.2 ms]
            Range (min … max):     9.3 ms …  11.4 ms    298 runs
      
      Fixes: d4ad4a25 ("[bash-completion] Fix default alias/variable completion")
      Fixes: 54891d11 ("[bash-completion] Minor optimization")
      ef2c29d5
    • Tomas Janousek's avatar
      [bash-completion] Move -F/_fzf filter to __fzf_orig_completion_filter · 218b3c82
      Tomas Janousek authored
      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
      218b3c82
    • Tomas Janousek's avatar
      [bash-completion] Avoid empty _a, _v completions · db9cb2dd
      Tomas Janousek authored
      This doesn't look right:
      
          $ complete | grep ' _.$'
          complete _a
          complete _v
      
      The __fzf_orig_completion_filter invocation in _fzf_setup_completion
      needs the /-F/ filter, just like all the other invocations.
      
      Fixes: d4ad4a25 ("[bash-completion] Fix default alias/variable completion")
      db9cb2dd
  11. Nov 09, 2020
  12. Nov 05, 2020
  13. Nov 03, 2020
  14. Oct 31, 2020
  15. Oct 30, 2020
  16. Oct 29, 2020
Loading