Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 2053  / 2 Years ago, thu, january 20, 2022, 3:25:20

When I work inside thin LXC container on 12.04 I have only very basic system. In particular the /etc/bash_completion.d is missing the e.g. apt, that I find particularly useful.



Is there any standard package, that installs the autocompletion for the apt, or should I copy the file manually? And just copying the files into /etc/bash_completion.d manually just doesn't seem to work.



I use bash as my command interpreter.



What am I missing here?


More From » 12.04

 Answers
5

OK, I found the problem.



There are 4 essential things required for auto completion:




  1. Bash

  2. Executable script /etc/bash_completion (this is the part I was missing)

  3. Not-executable scripts in folder /etc/bash_completion.d. I believe they get installed silently together with the associated packages.

  4. Execution of the script /etc/bash_completion within the Bash (the standard ~/.bashrc takes care of that)


[#34673] Friday, January 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
singerrupt

Total Points: 435
Total Questions: 111
Total Answers: 109

Location: Angola
Member since Tue, May 5, 2020
4 Years ago
;