You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I put eval "$(fzf --bash)" at the end of .bashrc,
then the prompt appears much slower than without it:
Without eval "$(fzf --bash)": 0.077sec
With eval "$(fzf --bash)": 0.419sec
Personally, I only added the eval "$(fzf --bash)" because of the CTRL+R function.
Maybe there is a special way to implement only the CTRL+R function in it and not need the eval "$(fzf --bash)"? Because then I think it would be possible to speed it up.
The text was updated successfully, but these errors were encountered:
$ time fzf --bash > /dev/null
real 0m0.021s
user 0m0.017s
sys 0m0.006s
$ time eval "$(fzf --bash)"
real 0m0.440s
user 0m0.337s
sys 0m0.126s
$ time eval "$(fzf --bash | sed -n '/### key-bindings/,/### end/p')"
real 0m0.059s
user 0m0.035s
sys 0m0.030s
$ time source ~/key-bindings.bash
real 0m0.017s
user 0m0.011s
sys 0m0.007s
So I stay source keybindings.bash file. Thx for your help!
And thank you for your work. fzf is at least as important as a sed or awk command.
Checklist
man fzf
)Output of
fzf --version
0.50.0 (f97d275)
OS
Shell
Problem / Steps to reproduce
If I put eval "$(fzf --bash)" at the end of .bashrc,
then the prompt appears much slower than without it:
Without eval "$(fzf --bash)": 0.077sec
With eval "$(fzf --bash)": 0.419sec
Personally, I only added the eval "$(fzf --bash)" because of the CTRL+R function.
Maybe there is a special way to implement only the CTRL+R function in it and not need the eval "$(fzf --bash)"? Because then I think it would be possible to speed it up.
The text was updated successfully, but these errors were encountered: