Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: nitram on July 22, 2016, 06:49:57 PM

Title: no sudo tab autocomplete
Post by: nitram on July 22, 2016, 06:49:57 PM
Posting in TC base as this affects TC and dCore. Tab autocomplete works with commands as regular user, but not with sudo, just file pathways. For example, typing cho+tab autocompletes to chown. Typing sudo cho+tab does not autocomplete. On Ubuntu and Debian sudo commands autocomplete using bash. Could not find answer googling, [solved] related to bash, bash-complete, bashrc. Sometimes i type command then Ctrl-a to prepend sudo, workaround. Is it possible to enable sudo command autocomplete in base TC, or just a limitation of Ash?
Title: Re: no sudo tab autocomplete
Post by: curaga on July 23, 2016, 05:44:54 AM
It's done using bash's extensible autocompletion, which ash does not have. So, to get that you need to install bash and the completion file for sudo.
Title: Re: no sudo tab autocomplete
Post by: nitram on July 23, 2016, 02:27:46 PM
Thanks for reply, will stick with Ash, appreciate it's responsiveness.