PDA

View Full Version : [SOLVED] bash tab completion does not work



adit
December 29th, 2011, 08:48 AM
After typing

man ap
if I press tab twice nothing happens. Same thing after typing

sudo ap
But if I simply type

ap
and press tab twice I get completions.

adit
December 31st, 2011, 12:20 PM
BUMP

This problem started after I deleted hidden files (files that start with a dot) in my home directory.

dentaku65
December 31st, 2011, 12:58 PM
BUMP

This problem started after I deleted hidden files (files that start with a dot) in my home directory.

You have deleted .bashrc file.
It's hard to recover everything after such operation (deleted all hidden files in your /home/<you>); probably you'll have other dysfunctions as well.

You can "recover" .bashrc file creating another user (profile) and then copy on your user (profile) that file.

Good luck.

adit
December 31st, 2011, 01:37 PM
cp /etc/skel/{.bashrc,.bash_logout,.profile} ~/ && . ~/.bashrc
The above code worked. Problem solved.