aterm -e screen does not source .bashrc (was: Re: been buggin'
me for a while now (console resolution))
Giorgos Keramidas
keramida at ceid.upatras.gr
Tue Jul 11 15:57:11 UTC 2006
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
$
More information about the freebsd-questions
mailing list