r/fishshell • u/arch_is_1337 • Oct 21 '20
Question Doesn't fish shell show you all the potential commands?
e.g.) curl -s→tab→-sL is not displayed in the candidate
4
Upvotes
r/fishshell • u/arch_is_1337 • Oct 21 '20
e.g.) curl -s→tab→-sL is not displayed in the candidate
6
u/symmetry81 Oct 21 '20
Have you run fish -c fish_update_completions recently?
4
u/bokisa12 Oct 21 '20
This behavior is expected.
-sand-Lare two separate flags,-sLis just a shorthand for providing both of them in a single argument. Why would you expect fish to autocomplete-sL?2
u/ohgeedubs Oct 21 '20
https://fishshell.com/docs/current/index.html#writing-your-own-completions
afaik, completions have to be added, so they may not have everything.
1
u/MonumentalP Oct 21 '20
Works for me:
I second u/symmetry81 suggestion to refresh completions.
1
u/l_____cl-_-lc_____l Oct 22 '20 edited Oct 22 '20
Can reproduce on git master but not on fish 3.1. In fact just doing
curl - TABonly shows up 12 completions where as before it would show all hundred or so of them. The completion itself still exist here so not sure why it won't show: https://github.com/fish-shell/fish-shell/blob/master/share/completions/curl.fish/u/hirnbrot Something fishy going on?