[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash, but no .bashrc??



Hi,
here, users have different profiles etc..
So I'm using bash interractive.
Change your /etc/profile like that:  
f [ "$BASH" ]; then
#  PS1='\u@\h:\w\$ '
	bash -i
else
  if [ "`id -u`" -eq 0 ]; then
    PS1='# '
  else
    PS1='$ '
  fi
fi
and your user .bashrc would be executed on login.
mess-mate

On Fri, 24 Jan 2003 15:52:53 -0500
"Andy Estes" <aestes@vt.edu> wrote:

| I am running Debian Woody (3.0r1).  The default shell for my user account is
| bash, and I can verify this by typing 'ps' once I am logged on.  However,
| the contents of my .bashrc do not get executed by default.  If I explicitely
| invoke bash (typing 'bash' at the shell), .bashrc is executed properly, but
| if I simply log in (locally or remotely), it doesn't happen.  Can anyone
| explain what is going on here?
| 
| -Andy
| 
| 
| -- 
| To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
| with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
| 


-- 
Computers are like air conditioners, they are useless when you open
Windows.

Attachment: pgp73thordgT0.pgp
Description: PGP signature


Reply to: