Skip to content
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

fish: erased functions still get autoloaded #185

Closed
rsteube opened this issue Oct 24, 2020 · 3 comments · Fixed by #2704
Closed

fish: erased functions still get autoloaded #185

rsteube opened this issue Oct 24, 2020 · 3 comments · Fixed by #2704
Labels
bug Something isn't working fish

Comments

@rsteube
Copy link
Member

rsteube commented Oct 24, 2020

completions need to be invoked once before they can be replaced so that they are not autoloaded:

complete --do-complete 'chown ' > /dev/null
complete --erase -c 'chown'
complete -c 'chown' -f -a '(_carapace_lazy chown)'

needs: fish-shell/fish-shell#6716

@rsteube rsteube added fish bug Something isn't working labels Oct 24, 2020
@rsteube
Copy link
Member Author

rsteube commented Nov 15, 2020

workaround:

touch ~/.config/fish/completions/chown.fish

@dwt
Copy link

dwt commented Feb 1, 2025

Looking at the linked fish issue fish-shell/fish-shell#6716 it seems to me the underlying issue may have been solved. So perhaps we can get rid of the ugly hack in the fish config:

mkdir -p ~/.config/fish/completions
carapace --list | awk '{print $1}' | xargs -I{} touch ~/.config/fish/completions/{}.fish # disable auto-loaded completions (#185)

As it greatly slows down shell startup.

@mati865
Copy link

mati865 commented Feb 1, 2025

Note that this fix exists only in the upcoming 4.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fish
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants