I have around ~1100 environment variables exported in both bash and fish (not manually! various scripts automatically export them e.g. https://github.com/techwizrd/fishmarks). Fish is significantly slower than bash.
Pretty simple to repro:
In fish, $<TAB> takes ~3-5 seconds
Note – complete -C '$' is instant
In bash, $<TAB> is instant.
What's going on? I suspect it's the fact that <TAB> is filling in the description as well, while fish's complete / bash don't deal with descriptions. If that's the case I suppose there's not too much we can do about speeding it up?
Edit: Figured it out...
#6288 (comment) Tab-completion of variables which fuzzily-match the word history are significantly slower than other tab-completions.
The text was updated successfully, but these errors were encountered:
changed the title
echo $<TAB> is significantly slower in fish than bashNov 5, 2019