WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: no sudo tab autocomplete  (Read 1796 times)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
no sudo tab autocomplete
« 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?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: no sudo tab autocomplete
« Reply #1 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.
The only barriers that can stop you are the ones you create yourself.

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: no sudo tab autocomplete
« Reply #2 on: July 23, 2016, 02:27:46 PM »
Thanks for reply, will stick with Ash, appreciate it's responsiveness.