Gentoo Archives: gentoo-user

From: Andrew Lowe <agl@×××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] bashrc in console
Date: Wed, 22 Mar 2017 13:39:14
Message-Id: f5111ae9-b1f8-4306-a1dc-bcfd1690add4@wht.com.au
In Reply to: Re: [gentoo-user] bashrc in console by Hogren
1 On 22/03/17 21:02, Hogren wrote:
2 >
3 >
4 > On 22/03/2017 13:58, Hogren wrote:
5 >>
6 >> On 22/03/2017 13:57, Hogren wrote:
7 >>> On 22/03/2017 13:42, Arthur Țițeică wrote:
8 >>>> În ziua de miercuri, 22 martie 2017, la 14:34:50 EET, Hogren a scris:
9 >>>>> Hello,
10 >>>>>
11 >>>>> Anybody knows why ~/.bashrc is not running on the first Bash opening ?
12 >>>> Maybe you're missing '.bash_profile'. Look in /etc/skel/ for an example.
13 >>> I don't understand. What do I have to in ~/.bash_profile to run .bashrc,
14 >>> even at the first logon ?
15 >>>
16 >>> I have nothing in /etc/skel.
17 >>>
18 >>> /etc/skel $ ls -l
19 >>> total 0
20 >>>
21 >>>
22 >>> Hogren
23 >>>
24 >> Stupid Hogren… ls -a …
25 >>
26 >> I will look.
27 >>
28 >> Sorry.
29 >>
30 > Ok it works, thanks !
31 >
32 > Can you explain to me why the ~/.bashrc is sourced in subshells without
33 > .bash_profile ?
34 >
35 > Thanks again !
36 >
37 > Bye
38 >
39 > Hogren
40 >
41 >
42 Hogren,
43 I've been playing around with .bash* stuff a bit due to setting up a
44 Win based Linux like development environment for Uni students and, if
45 I've understood your question correctly, these links might help. They
46 outline what file is called in what context.
47
48
49 http://tinyurl.com/9hrrh53
50
51 http://tinyurl.com/hqemqzk
52
53 Andrew

Replies

Subject Author
Re: [gentoo-user] bashrc in console Hogren <hogren@×××××.com>