Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: trimmed Clear Filter

Writing simple tab-completions for Bash and Zsh

The last quality of life feature we will add is the ability to show completion descriptions when tabbing on a complete word: $ foo apple<TAB> For example, the Mill build tool does this so if you’re not sure what a flag or command does, you can press <TAB> on it to see more details: Tab-completion is a common way to explore unfamiliar APIs, and just because someone finished writing a flat or command doesn’t mean they aren’t curious about what it does! But while Zsh tab-completion displays desc

Writing Your Own Simple Tab-Completions for Bash and Zsh

The last quality of life feature we will add is the ability to show completion descriptions when tabbing on a complete word: $ foo apple<TAB> For example, the Mill build tool does this so if you’re not sure what a flag or command does, you can press <TAB> on it to see more details: Tab-completion is a common way to explore unfamiliar APIs, and just because someone finished writing a flat or command doesn’t mean they aren’t curious about what it does! But while Zsh tab-completion displays desc