News for hackers. Stuff that matters.
Re:Writing Your Own Simple Tab-Completions for Bash and Zsh by JNRowe on Sunday August 10, 2025 @10:45AM (#44855551)
There is the complete-filename function that only completes filenames in bash, bound to M-/ by default. You can use that in any place you want a filename where "complete"(the function normally bound to tab) would do something you don't desire.

There are a collection of other non-context aware completion functions that are bound by default too, useful for example when you when you wish to complete hostnames in a for-loop.

zle has what is largely a significant superset of this, the documentation is spread about between the zshzle and zshcomp* manpages.

There are no comments on this comment yet.