Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
50
rated 0 times [  50] [ 0]  / answers: 1 / hits: 32185  / 3 Years ago, tue, july 6, 2021, 6:57:33

I have just came across something that is really bothering me. Autocompletion on ubuntu works like a charm but when I login as root, e.g. su I get tab autocompletion only sometimes.



Why does it work like that? Can one change that?


More From » bash

 Answers
1

Check your /root/.bashrc file for these lines


if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi

If they do not exist add them to the end of the file using your favorite text editor.


Please note, that the autocompletion will start working just after logging out and back again!


[#40417] Thursday, July 8, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
donurp

Total Points: 328
Total Questions: 128
Total Answers: 123

Location: Faroe Islands
Member since Thu, Apr 8, 2021
3 Years ago
;