On 2010-04-17, Aioanei Rares <debian.dev.l...@gmail.com> wrote:
> Howdy,
>
> Following this link ( 
> http://www.debian-administration.org/article/An_introduction_to_bash_completion_part_1
>  
> ) and if I type at the terminal '. /etc/bash_completion' everything 
> works top-notch. However, if I put the above command in the global 
> .profile or in my user's profile, after typing my user/pass in gdm, I 
> get errors. If I put '. /etc/bash_completion' in ~/.profile, I get the 
> 'your session lasted less than 10 seconds' and the reason is 'cannot 
> open /etc/bash_completion' . If I put the command in /etc/profile, I get 
> some errors about mismatched parantheses. Am I doing something wrong? 
> It's annoying to type '. /etc/bash_profile' everytime. Thanks in advance.
>
> Yours,
>
>
I have the following stanza in my ~/.bashrc file:

        if [ -f /etc/bash_completion ]; then
            . /etc/bash_completion
        fi

It is already in the default .bashrc file (see /etc/skel/.bashrc); you
just need to uncomment it.

-- 
Liam O'Toole
Birmingham, United Kingdom



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/slrnhsjc0s.bu7.liam.p.oto...@dipsy.selfip.org

Reply via email to