New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shell slow to start with eval "$(thefuck --alias)"
, workaround is a lazy loading trick
#1428
Comments
Came to report this same issue. For some reason,
My workaround rather than lazy loading was simply to use the output of the command directly in my bashrc. I'll need to re-do that if the output changes and |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The output of
thefuck --version
(something likeThe Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release
):The Fuck 3.32 using Python 3.12.1 and Bash 5.2.21(1)-release
Your system (Debian 7, ArchLinux, Windows, etc.):
Fedora 39
How to reproduce the bug:
Put
eval $(thefuck --alias)
in~/.bashrc
and observe that the shell is noticeably slower to start than without it.Time without:
Time with:
Anything else you think is relevant:
If there is nothing that can be done to fix this, the following lazy loading trick works for me:
alias fuck='if ! declare -f fuck &>/dev/null; then eval -- "$(thefuck -a)"; fi && fuck'
Maybe this should be added to the docs somehow?
The text was updated successfully, but these errors were encountered: