6

On my desktop typing python- and pressing Tab offers suggestions of installable packages that are prefixed python. My server doesn't have this ability, how can I fix that?

1 Answer 1

7

Install bash-completion and put this line in your ~/.bashrc (but check first if there is a similar line first):

. /etc/bash_completion

Note that it will only take effect in new terminals you open from now on. To take effect in the current terminal source your ~/.bashrc

source ~/.bashrc

or

. ~/.bashrc
3
  • 2
    Actually... you can just type source ~/.bashrc in the command line and it will reload the .bashrc system. You won't need to relogin.
    – Thomas Ward
    Apr 14, 2011 at 1:38
  • Put your suggestion in the text of the answer, thank you.
    – enzotib
    Apr 14, 2011 at 12:49
  • I don't have edit powers :/
    – Thomas Ward
    Apr 14, 2011 at 15:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .