Click to See Complete Forum and Search --> : Tab completion


bdg1983
11-16-2001, 07:40 AM
Just out of curiosity .. I know you can add programs to the tab completions, the question is how?
Say I have written a c++ program and put the executable file in my home directory as filename. I guess you have to type in the entire path to the file :
/home/moonx/filename somewhere, but where ?

Urko
11-16-2001, 11:17 PM
if it is an executable file and in your $PATH
bash will try to complete using that file name

bdg1983
11-17-2001, 02:10 PM
Yes, I know that .. maybe I wasn`t clear enough .. where or how do I enter an executable file, like the ones I`ve made myself into the path ?

Choozo
11-17-2001, 03:21 PM
You don't add filenames to your $PATH, only directories.

Add this line to your ~/.bash_profile or ~/.bashrc file: export PATH=$PATH:/home/moonx