Re: What files are source in bash login shell?

2009-11-17 Thread Peng Yu
On Tue, Nov 17, 2009 at 3:12 PM, Bob Proulx wrote: > Peng Yu wrote: >> I make my ~/.bash_profile empty. I still see >> >> $ echo $PATH >> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games > > What is in your ~/.bashrc file? > >> I checked /etc/profile and /etc/bash.bashrc. Bu

Re: What files are source in bash login shell?

2009-11-17 Thread Bob Proulx
Peng Yu wrote: > I make my ~/.bash_profile empty. I still see > > $ echo $PATH > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games What is in your ~/.bashrc file? > I checked /etc/profile and /etc/bash.bashrc. But I don't PATH is set > in the two files. I'm wondering from w

Re: What files are source in bash login shell?

2009-11-17 Thread Chet Ramey
Peng Yu wrote: > I make my ~/.bash_profile empty. I still see > > $ echo $PATH > /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games > > I checked /etc/profile and /etc/bash.bashrc. But I don't PATH is set > in the two files. I'm wondering from which file PATH is set. BTW, my

What files are source in bash login shell?

2009-11-17 Thread Peng Yu
I make my ~/.bash_profile empty. I still see $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games I checked /etc/profile and /etc/bash.bashrc. But I don't PATH is set in the two files. I'm wondering from which file PATH is set. BTW, my system is ubuntu.

Re: How to change the command completion behavior in bash

2009-11-17 Thread Chet Ramey
Peng Yu wrote: > On Mon, Nov 16, 2009 at 4:50 AM, Henning Garus > wrote: >> On Sun, Nov 15, 2009 at 08:31:38PM -0600, Peng Yu wrote: >>> If I have the following in the command line, >>> >>> ~/.bash >>> >>> when I type , it will become /home/my_user_name/.bash >>> >>> I'm wondering if it is possibl

Re: How to change the command completion behavior in bash

2009-11-17 Thread Peng Yu
On Tue, Nov 17, 2009 at 1:15 PM, Chet Ramey wrote: > Peng Yu wrote: >> On Mon, Nov 16, 2009 at 8:30 AM, Chet Ramey wrote: If I have the following in the command line, ~/.bash when I type , it will become /home/my_user_name/.bash I'm wondering if it is possible t

Re: How to change the command completion behavior in bash

2009-11-17 Thread Peng Yu
On Mon, Nov 16, 2009 at 4:50 AM, Henning Garus wrote: > On Sun, Nov 15, 2009 at 08:31:38PM -0600, Peng Yu wrote: >> If I have the following in the command line, >> >> ~/.bash >> >> when I type , it will become /home/my_user_name/.bash >> >> I'm wondering if it is possible to configure bash command

Re: How to change the command completion behavior in bash

2009-11-17 Thread Chet Ramey
Peng Yu wrote: > On Mon, Nov 16, 2009 at 8:30 AM, Chet Ramey wrote: >>> If I have the following in the command line, >>> >>> ~/.bash >>> >>> when I type , it will become /home/my_user_name/.bash >>> >>> I'm wondering if it is possible to configure bash command completion, >>> so that it will still

Re: How to change the command completion behavior in bash

2009-11-17 Thread Peng Yu
On Mon, Nov 16, 2009 at 8:30 AM, Chet Ramey wrote: >> If I have the following in the command line, >> >> ~/.bash >> >> when I type , it will become /home/my_user_name/.bash >> >> I'm wondering if it is possible to configure bash command completion, >> so that it will still be '~/.bash' > > You don