aterm -e screen does not source .bashrc (was: Re: been buggin' me for a while now (console resolution))

Peter petermatulis at yahoo.ca
Tue Jul 11 16:05:49 UTC 2006


--- Giorgos Keramidas <keramida at ceid.upatras.gr> wrote:

> On 2006-07-11 11:18, Peter <petermatulis at yahoo.ca> wrote:
> >>> I added this option but I still do not get my ~/.profile sourced
> >>> (no aliases).  Going '. ~/.profile' gives me my aliases.  How
> does
> >>> aterm know what file to look for?
> >>
> >> aterm doesn't care about .profile or other files.  It starts a
> shell,
> >> based on the $SHELL environment variable and your login shell from
> >> `/etc/passwd'.
> >>
> >> What shell are you using?
> >
> > $ echo $SHELL
> > /usr/local/bin/bash
> >
> > $ grep peter /etc/passwd
> > peter:*:1002:100:User &:/home/peter:/usr/local/bin/bash
> >
> > Do I need to set up a different file (.bashrc)?
> 
> GNU bash will not read .profile if you also have a .bash_profile
> file.
> 
> What do you see in your HOME directory with:
> 
> 	$ ls -ld .*profile .*rc
> 
> In my local setup here, I see something like this:
> 
>     $ pwd
>     /home/giorgos
>     $ ls -ld .bash* .sh* .profile
>     -rw-------  1 giorgos  giorgos  - 30103 Jul 11 18:47
> .bash_history
>     -rw-rw-r--  1 giorgos  giorgos  -   318 Jul 11 17:47
> .bash_profile
>     -rw-rw-r--  1 giorgos  giorgos  -  3742 Jul 11 18:17 .bashrc
>     -rw-rw-r--  1 giorgos  giorgos  -  1006 Mar 29 07:19 .profile
>     -rw-rw-r--  1 giorgos  giorgos  -  1433 Nov 18  2004 .shrc


$ ls -ld .*profile .*rc
-rw-rw----  1 peter  users   767B Jul 29  2005 .cshrc
-rw-------  1 peter  users    26B May  2 11:08 .dmrc
-rw-rw----  1 peter  users   331B Jul 29  2005 .mailrc
-rw-rw----  1 peter  users    31B Jun 28 21:33 .mcoprc
-rw-rw----  1 peter  users   1.6K Jul  4 15:31 .profile
-rw-r--r--  1 peter  users   616B Jun 19 22:10 .screenrc
-rw-rw----  1 peter  users   975B Jul 29  2005 .shrc
-rw-rw----  1 peter  users   402B Jul 11 09:29 .xinitrc

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the freebsd-questions mailing list