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
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
-
2Actually... 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 -
-