r/commandline • u/Academic_Season_8701 • 22h ago
Command Line Interface Bash completion menu similar to ZSH's
The main reason I use ZSH as my main shell is due to its completion menu, is so convenient. I wanted to something similar but I don't like the bloated software with a lot of code and complex configurations, at least at the moment I couldn't find something for my taste, so I built one. I built it 8 months ago but I decided to share it with you guys to get some feedback.
• Built for Bash 5.0 but planning to update it for Bash 5.3, where new features are introduced for completion and performance.
• Is a single script no external dependencies :)
• Live typing and backspace filtering: typing and backspacing while menu is open will narrow down the completions.
• Use arrow keys for navegation.
• Home/End key to go to the beginning/end of the completion's menu.
https://github.com/Madophs/Bash-Complete-Menu
All to need to do is the following:
source ./bash_complete_menu.sh"
bind -x '"\C-i":bash_complete_menu'
