Re: Which files do what: .bashrc and friends

2008-11-20 Thread Emanoil Kotsev
Boyd Stephen Smith Jr. wrote: > On Wednesday 19 November 2008, tyler <[EMAIL PROTECTED]> wrote > about 'Re: Which files do what: .bashrc and friends': >>I believe .profile and .bash_profile are synonyms, so you'd only use one >>or the other. > > .pro

Re: Which files do what: .bashrc and friends

2008-11-19 Thread John Hasler
>From the INVOCATION section of the Bash man page: When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, i

Re: Which files do what: .bashrc and friends

2008-11-19 Thread s. keeling
Mike McCarty <[EMAIL PROTECTED]>: > Dotan Cohen wrote: > > > > .bashrc > > Run once for each interactive shell, after .profile ... if called by .profile or .bash_profile. A long time ago, this was automatic (a la ksh and ENV; if ENV = ~/.kshrc, then ~/.kshrc was run on login shell invocation)

Re: Which files do what: .bashrc and friends

2008-11-19 Thread François Cerbelle
Dotan Cohen a écrit : Thanks in advance. If there are any good docs that explain this, I'd love to see them. I have not been able to google anything recent that is relevant to Debian. Quick'n dirty solution : Another way to know, even if it does not cover all cases, is to put the following li

Re: Which files do what: .bashrc and friends

2008-11-19 Thread Teemu Likonen
Boyd Stephen Smith Jr. (2008-11-19 14:37 -0600) wrote: >>1) Is a login shell run when the user logs onto KDE (even though he >>does not see a konsole window)? > > Nope a login shell is when bash is executed with the -l option, or having > an argv[0] starting with '-'. If K Display Manager (kdm)

Re: Which files do what: .bashrc and friends

2008-11-19 Thread tyler
"Boyd Stephen Smith Jr." <[EMAIL PROTECTED]> writes: > On Wednesday 19 November 2008, "Dotan Cohen" <[EMAIL PROTECTED]> wrote about > 'Re: Which files do > what: .bashrc and friends': >>1) Is a login shell run when the user logs

Re: Which files do what: .bashrc and friends

2008-11-19 Thread Boyd Stephen Smith Jr.
On Wednesday 19 November 2008, "Dotan Cohen" <[EMAIL PROTECTED]> wrote about 'Re: Which files do what: .bashrc and friends': >1) Is a login shell run when the user logs onto KDE (even though he >does not see a konsole window)? Nope a login shell is when bash is

Re: Which files do what: .bashrc and friends

2008-11-19 Thread Boyd Stephen Smith Jr.
On Wednesday 19 November 2008, tyler <[EMAIL PROTECTED]> wrote about 'Re: Which files do what: .bashrc and friends': >I believe .profile and .bash_profile are synonyms, so you'd only use one >or the other. .profile is only used by bash when it cannot find .bash_profi

Re: Which files do what: .bashrc and friends

2008-11-19 Thread Mike McCarty
Dotan Cohen wrote: On a Debian-based system running KDE 3.5.10 I see several files that are used when logging in / starting a Konsole: .profile Run once upon login. .bash_history List of previous commands for recall/edit/re execution .bash_logout Run once upon logout .bash_profile

Re: Which files do what: .bashrc and friends

2008-11-19 Thread tyler
"Dotan Cohen" <[EMAIL PROTECTED]> writes: > 2008/11/19 tyler <[EMAIL PROTECTED]>: >> "Dotan Cohen" <[EMAIL PROTECTED]> writes: >> >>> On a Debian-based system running KDE 3.5.10 I see several files that >>> are used when logging in / starting a Konsole: >>> >>> .profile >>> .bash_history >>> .bash

Re: Which files do what: .bashrc and friends

2008-11-19 Thread Dotan Cohen
2008/11/19 tyler <[EMAIL PROTECTED]>: > "Dotan Cohen" <[EMAIL PROTECTED]> writes: > >> On a Debian-based system running KDE 3.5.10 I see several files that >> are used when logging in / starting a Konsole: >> >> .profile >> .bash_history >> .bash_logout >> .bash_profile >> .bashrc >> >> Thanks in a

Re: Which files do what: .bashrc and friends

2008-11-19 Thread tyler
"Dotan Cohen" <[EMAIL PROTECTED]> writes: > On a Debian-based system running KDE 3.5.10 I see several files that > are used when logging in / starting a Konsole: > > .profile > .bash_history > .bash_logout > .bash_profile > .bashrc > > Thanks in advance. If there are any good docs that explain thi