Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am working under debian squeeze. I always install packages such way:

sudo apt-g(Tab pressed) i(Tab pressed) aria(Tab pressed)
sudo apt-get install aria2

I have installed chroot squeeze to test my deb packages to prevent demage to main system. But such tips (Tab) doesn't work there. I think I can enable this tips in .bashrc. How to do this?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

The relevant section in the debian default bashrc is

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi

The file sourced there is part of the bash-completion package:

$ dpkg -S /etc/bash_completion
bash-completion: /etc/bash_completion
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.