How does the autocomplete work and more importantly how can I add stuff to it? It seems to be very easy on bash, but with only ash
available I'm lost.
According to https://en.wikipedia.org/wiki/Comparison_of_command_shells#Interactive_features ash doesn't have any completion function.
1 Like
ash does not use the same mechanism as bash, so it may not be extended like bash. bash relies on the built-in command "complete" to configure this while ash has it compiled in. See BUSYBOX_CONFIG_FEATURE_TAB_COMPLETION
for generic completion and BUSYBOX_CONFIG_FEATURE_USERNAME_COMPLETION
for home completion.
Thus, ash only have the most basic completions like directories, tilde and $PATH, but that is all I need, so I'm happy with that.
2 Likes
Thank you guys, switched to bash
and wrote custom auto-complete for that.