Re: [gentoo-user] .bashrc over ssh

2003-12-10 Thread Oliver Lange
Eric Paynter wrote: mv ~/.bash_profile ~/.bash_profile.bkp ln -s ~/.bashrc ~/.bash_profile Then you get the same thing, no matter how you started the shell. Also, you can edit either file and the other gets the edits, since they are really both the same file, just with two names. Interesting.

Re: [gentoo-user] .bashrc over ssh

2003-12-10 Thread Oliver Lange
Ric Messier wrote: On Tue, 9 Dec 2003, Eric Paynter wrote: The problem with symlinking one to the other as you suggest is if you ever use something like scp, you potentially break it, as the comment in .bashrc says. All my profile-ish things that generate output get put, correctly, into

Re: [gentoo-user] .bashrc over ssh

2003-12-10 Thread mathieu perrenoud
Le Mercredi, 10 Décembre 2003 11.21, Oliver Lange a écrit : Ric Messier wrote: On Tue, 9 Dec 2003, Eric Paynter wrote: The problem with symlinking one to the other as you suggest is if you ever use something like scp, you potentially break it, as the comment in .bashrc says. All my

Re: [gentoo-user] .bashrc over ssh

2003-12-10 Thread Oliver Lange
Eric Paynter wrote: Gentoo by default sources .bashrc from .bash_profile which is, of course, why I asked what shell he is using. If .bashrc isn't getting run, then perhaps he has a different shell without realizing it. Or perhaps he doesn't have a .bash_profile... I have a .bash_profile, but

Re: [gentoo-user] .bashrc over ssh

2003-12-10 Thread Oliver Lange
Eric Paynter wrote: Or perhaps he doesn't have a .bash_profile... Addendum: I just found out that everything works fine as long i'm logging in under my user account - the problem only occurs when i login as root, even local login won't execute the .bashrc in /root, no matter if i login locally

Re: [gentoo-user] .bashrc over ssh

2003-12-10 Thread David Gethings
On Wed, 2003-12-10 at 14:12, Oliver Lange wrote: Eric Paynter wrote: Gentoo by default sources .bashrc from .bash_profile which is, of course, why I asked what shell he is using. If .bashrc isn't getting run, then perhaps he has a different shell without realizing it. Or perhaps he

Re: [gentoo-user] .bashrc over ssh

2003-12-10 Thread mathieu perrenoud
I have a .bash_profile, but i'm not sure if and which shell i'm using. I can only say this: i've installed gentoo. How can i fugure out which shell is set for my user and for the root account ? finger username grep username /etc/passwd | awk -F: '{print $7}' use chsh to change your shell.

Re: [gentoo-user] .bashrc over ssh

2003-12-10 Thread Ric Messier
On Wed, 10 Dec 2003, Oliver Lange wrote: I have a .bash_profile, but i'm not sure if and which shell i'm using. I can only say this: i've installed gentoo. How can i fugure out which shell is set for my user and for the root account ? Yep. Which again leads me to believe that somehow you

Re: [gentoo-user] .bashrc over ssh

2003-12-10 Thread Ric Messier
On Wed, 10 Dec 2003, David Gethings wrote: As you rightly pointed out neither .bashrc nor .bash_profile are executable. For the line in your .bash_profile to include your config in .bashrc make it executable (chmod u+x .bashrc). No, you don't need to do that. The . tells it to be parsed.

Re: [gentoo-user] .bashrc over ssh

2003-12-10 Thread Patrick Börjesson
add echoes in your .bash* files, like: echo executing bashrc ^^ I wouldn't recommend this as some things (like ssh) won't like the output when sourcing .bashrc AFAIK Patrick Börjesson -- Public key ID: 4C5AB0BF Public key available at wwwkeys.pgp.net pgp0.pgp Description: PGP

Re: [gentoo-user] .bashrc over ssh

2003-12-10 Thread Mike Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wednesday 10 December 2003 01:02, Oliver Lange wrote: Ric Messier wrote: What do you have set for your shell? Sorry, i don't understand the question, but there are so many (different!!) replies to my initial question that i guess the answer

Re: [gentoo-user] .bashrc over ssh

2003-12-10 Thread mathieu perrenoud
Le Mercredi, 10 Décembre 2003 16.31, Patrick Börjesson a écrit : add echoes in your .bash* files, like: echo executing bashrc ^^ I wouldn't recommend this as some things (like ssh) won't like the output when sourcing .bashrc AFAIK yes right, but that's only for testing purposes. ssh

Re: [gentoo-user] .bashrc over ssh

2003-12-10 Thread N. Owen Gunden
On Tue, Dec 09, 2003 at 08:34:36PM +0100, Oliver Lange wrote: Does anyone know how to use ssh in a way that ~/.bashrc is executed at logon ? Currently, I need to start a bash right after logging in, then must enter 'exit' twice to log off.. man bash read the section INVOCATION It will take

[gentoo-user] .bashrc over ssh

2003-12-09 Thread Oliver Lange
Hello everyone, Does anyone know how to use ssh in a way that ~/.bashrc is executed at logon ? Currently, I need to start a bash right after logging in, then must enter 'exit' twice to log off.. -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] .bashrc over ssh

2003-12-09 Thread Ric Messier
What do you have set for your shell? On Tue, 9 Dec 2003, Oliver Lange wrote: Hello everyone, Does anyone know how to use ssh in a way that ~/.bashrc is executed at logon ? Currently, I need to start a bash right after logging in, then must enter 'exit' twice to log off.. -- [EMAIL

Re: [gentoo-user] .bashrc over ssh

2003-12-09 Thread Eric Paynter
Oliver Lange said: Does anyone know how to use ssh in a way that ~/.bashrc is executed at logon ? Currently, I need to start a bash right after logging in, then must enter 'exit' twice to log off.. It probably runs ~/.bash_login on login. I've symlinked the two files together, since I expect

Re: [gentoo-user] .bashrc over ssh - bash tips

2003-12-09 Thread Sandy McArthur
Oliver Lange wrote: Does anyone know how to use ssh in a way that ~/.bashrc is executed at logon ? The exact details of when and why bash, or any other shell, sources files is beyond me but Currently, I need to start a bash right after logging in, then must enter 'exit' twice to log off..

Re: [gentoo-user] .bashrc over ssh

2003-12-09 Thread mathieu perrenoud
Does anyone know how to use ssh in a way that ~/.bashrc is executed at logon ? Currently, I need to start a bash right after logging in, then must enter 'exit' twice to log off.. I have all my init. scripts in ~/.scriptrc and I have it called by ~/.bashrc and ~/.bash_profile so it's called

Re: [gentoo-user] .bashrc over ssh

2003-12-09 Thread Richard Kilgore
On Tue, Dec 09, 2003 at 02:48:30PM -0500, Ric Messier wrote: What do you have set for your shell? On Tue, 9 Dec 2003, Oliver Lange wrote: Hello everyone, Does anyone know how to use ssh in a way that ~/.bashrc is executed at logon ? Currently, I need to start a bash right after

Re: [gentoo-user] .bashrc over ssh

2003-12-09 Thread brett holcomb
You could source ~/.bashrc from ~/.bash_profile. On Tue, 09 Dec 2003 20:34:36 +0100 Oliver Lange [EMAIL PROTECTED] wrote: Hello everyone, Does anyone know how to use ssh in a way that ~/.bashrc is executed at logon ? Currently, I need to start a bash right after logging in, then must enter

Re: [gentoo-user] .bashrc over ssh

2003-12-09 Thread Oliver Lange
Ric Messier wrote: What do you have set for your shell? Sorry, i don't understand the question, but there are so many (different!!) replies to my initial question that i guess the answer is already there... i just got to try them all :) Amazing how many different solutions i've already seen. --

Re: [gentoo-user] .bashrc over ssh

2003-12-09 Thread Eric Paynter
Oliver Lange said: Ric Messier wrote: What do you have set for your shell? Sorry, i don't understand the question The shell is what you use to interact with the operating system. By default in Gentoo you use bash. Common alternatives include sh, ksh, csh, and many many more... -Eric --

Re: [gentoo-user] .bashrc over ssh

2003-12-09 Thread Eric Paynter
Oliver Lange said: brett holcomb wrote: You could source ~/.bashrc from ~/.bash_profile. What ? Sorry, Linux is still a riddle for me. Could you explain that in - lets say - one or two more lines ? :) When you initiate an interactive session, the shell chooses an initialization script to

Re: [gentoo-user] .bashrc over ssh

2003-12-09 Thread Ric Messier
On Tue, 9 Dec 2003, Eric Paynter wrote: When you initiate an interactive session, the shell chooses an initialization script to run based on how you started the session. If you use bash, it may run ~/.bashrc or ~/.bash_profile. Gentoo by default sources .bashrc from .bash_profile which is,

[gentoo-user] bashrc/profile and scp

2003-10-03 Thread Richard Revis
I have a .bash_profile that calls .bashrc, and fortune is called from .bashrc (fortune -s bofh-excuses homer futurama chalkboard) to give me a quote when I log in. This mostly works fine, but when I try and scp something _to_ this machine from another it just displays the first line of the

Re: [gentoo-user] bashrc/profile and scp

2003-10-03 Thread Marshal Newrock
On Fri, 3 Oct 2003, Richard Revis wrote: I have a .bash_profile that calls .bashrc, and fortune is called from .bashrc (fortune -s bofh-excuses homer futurama chalkboard) to give me a quote when I log in. This mostly works fine, but when I try and scp something _to_ this machine from

Re: [gentoo-user] bashrc/profile and scp

2003-10-03 Thread gabriel
On Fri, 2003-10-03 at 12:29, Marshal Newrock wrote: From the top of .bashrc: # This file is sourced by all bash shells on startup, whether interactive # or not. This file *should generate no output* or it will break the # scp and rcp commands. From the top of .bash_profile: #This file is

Re: [gentoo-user] .bashrc

2003-08-14 Thread Collins Richey
On Fri, 8 Aug 2003 01:41:30 -0500 Steven Elling [EMAIL PROTECTED] wrote: On Thursday 07 August 2003 21:50, Collins Richey wrote: On Thu, 7 Aug 2003 21:13:05 -0500 Steven Elling [EMAIL PROTECTED] wrote: On Thursday 07 August 2003 17:02, Dr. Robert M. Fuhrer wrote: At 03:55 PM

Re: [gentoo-user] .bashrc

2003-08-14 Thread Collins Richey
On Thu, 07 Aug 2003 15:19:12 -0400 Dr. Robert M. Fuhrer [EMAIL PROTECTED] wrote: What about typeset -f? No man entry for this. What does 'typeset' do. -- Collins Richey - Denver Area if you fill your heart with regrets of yesterday and the worries of tomorrow, you have no today to be

Re: [gentoo-user] .bashrc

2003-08-14 Thread Steven Elling
On Thursday 07 August 2003 21:50, Collins Richey wrote: On Thu, 7 Aug 2003 21:13:05 -0500 Steven Elling [EMAIL PROTECTED] wrote: On Thursday 07 August 2003 17:02, Dr. Robert M. Fuhrer wrote: At 03:55 PM 8/7/2003 -0600, Collins Richey wrote: On Thu, 07 Aug 2003 15:19:12 -0400 Dr.

Re: [gentoo-user] .bashrc

2003-08-14 Thread Dhruba Bandopadhyay
Steven Elling wrote: Here is a nice trick. Want to know which package the executables tic, tack and toe belong to? Just do the following (those a backtick not single quotes): ~ $ epm -qf `type -p tic` ncurses-5.3-r1 ~ $ epm -qf `type -p tac` textutils-2.1 ~ $ epm -qf `type -p toe`

Re: [gentoo-user] .bashrc

2003-08-14 Thread Anthony Floyd
On Thu, 07 Aug 2003 13:32:08 -0400 daniel [EMAIL PROTECTED] wrote: On August 7, 2003 01:05 pm, Ernie Schroder wrote: Hi All, I just messed up! I blew away my .bashrc. It seems that it might be recoverable because my aliases are still working. Any ideas? i've done this before too.

[gentoo-user] .bashrc

2003-08-14 Thread Ernie Schroder
Hi All, I just messed up! I blew away my .bashrc. It seems that it might be recoverable because my aliases are still working. Any ideas? -- Regards, Ernie 100% Microsoft and Intel free -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] .bashrc

2003-08-14 Thread Dr. Robert M. Fuhrer
At 03:55 PM 8/7/2003 -0600, Collins Richey wrote: On Thu, 07 Aug 2003 15:19:12 -0400 Dr. Robert M. Fuhrer [EMAIL PROTECTED] wrote: What about typeset -f? No man entry for this. What does 'typeset' do. Sorry; it's a bash built-in. It displays the definitions of all the user-defined functions

Re: [gentoo-user] .bashrc

2003-08-10 Thread Ernie Schroder
On Thursday 07 August 2003 03:52 pm, Condon Thomas A KPWA wrote: Anthony Floyd wrote: On Thu, 07 Aug 2003 13:32:08 -0400 daniel [EMAIL PROTECTED] wrote: On August 7, 2003 01:05 pm, Ernie Schroder wrote: Hi All, I just messed up! I blew away my .bashrc. It seems that it might be

Re: [gentoo-user] .bashrc

2003-08-09 Thread Peter Ruskin
On Saturday 09 Aug 2003 09:25, Dhruba Bandopadhyay wrote: This can also be done as: etcat -b `which tic` Or, qpkg -f `which tic` For completeness. qpkg -f `which tic` is by far the faster Peter -- == Gentoo Linux: Gentoo Base System

Re: [gentoo-user] .bashrc

2003-08-09 Thread daniel
On August 7, 2003 01:05 pm, Ernie Schroder wrote: Hi All, I just messed up! I blew away my .bashrc. It seems that it might be recoverable because my aliases are still working. Any ideas? i've done this before too. the way i recovered was (a) copy the one in /etc/skel/.bashrc to ~. if

Re: [gentoo-user] .bashrc

2003-08-09 Thread Zack Gilburd
On Thursday 07 August 2003 12:52 pm, Condon Thomas A KPWA wrote: Anthony Floyd wrote: On Thu, 07 Aug 2003 13:32:08 -0400 daniel [EMAIL PROTECTED] wrote: On August 7, 2003 01:05 pm, Ernie Schroder wrote: Hi All, I just messed up! I blew away my .bashrc. It seems that it might be

Re: [gentoo-user] .bashrc

2003-08-09 Thread Norberto BENSA
Zack Gilburd wrote: I don't know what client you are using, X-Mailer: Internet Mail Service (5.5.2655.55) Isn't that from Maycrashsoft? Norberto pgp0.pgp Description: signature

Re: [gentoo-user] .bashrc

2003-08-08 Thread Collins Richey
On Thu, 7 Aug 2003 21:13:05 -0500 Steven Elling [EMAIL PROTECTED] wrote: On Thursday 07 August 2003 17:02, Dr. Robert M. Fuhrer wrote: At 03:55 PM 8/7/2003 -0600, Collins Richey wrote: On Thu, 07 Aug 2003 15:19:12 -0400 Dr. Robert M. Fuhrer [EMAIL PROTECTED] wrote: What about

RE: [gentoo-user] .bashrc

2003-08-08 Thread Condon Thomas A KPWA
Anthony Floyd wrote: On Thu, 07 Aug 2003 13:32:08 -0400 daniel [EMAIL PROTECTED] wrote: On August 7, 2003 01:05 pm, Ernie Schroder wrote: Hi All, I just messed up! I blew away my .bashrc. It seems that it might be recoverable because my aliases are still working. Any ideas? i've

Re: [gentoo-user] .bashrc

2003-08-07 Thread Dr. Robert M. Fuhrer
At 02:03 PM 8/7/2003 -0400, Ernie Schroder wrote: On Thursday 07 August 2003 01:41 pm, Anthony Floyd wrote: On Thu, 07 Aug 2003 13:32:08 -0400 daniel [EMAIL PROTECTED] wrote: On August 7, 2003 01:05 pm, Ernie Schroder wrote: Hi All, I just messed up! I blew away my .bashrc. It seems

Re: [gentoo-user] .bashrc

2003-08-07 Thread Ernie Schroder
On Thursday 07 August 2003 01:41 pm, Anthony Floyd wrote: On Thu, 07 Aug 2003 13:32:08 -0400 daniel [EMAIL PROTECTED] wrote: On August 7, 2003 01:05 pm, Ernie Schroder wrote: Hi All, I just messed up! I blew away my .bashrc. It seems that it might be recoverable because my aliases

[gentoo-user] .bashrc ?

2003-07-24 Thread raptor
hi, which are the packges that contain .bashrc/.bash_profile files ?! tia PS. etcat qpkg cant find them !? -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] .bashrc ?

2003-07-24 Thread Bobby R. Cox
Look in /etc/skel ls -la should show you if they are there. On Thu, 2003-07-24 at 07:43, raptor wrote: hi, which are the packges that contain .bashrc/.bash_profile files ?! tia PS. etcat qpkg cant find them !? -- [EMAIL PROTECTED] mailing list -- Bobby R. Cox Linux Systems

Re: [gentoo-user] .bashrc ?

2003-07-24 Thread Sebastian Hungerecker
On Thu, 24 Jul 2003 16:43:39 +0300 raptor [EMAIL PROTECTED] wrote: which are the packges that contain .bashrc/.bash_profile files ?! These files aren't contained in any packages, just create them yourself. -- Linux inside NP: Kreator - Grinder -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] .bashrc ?

2003-07-24 Thread Renat Golubchyk
Hi! r which are the packges that contain .bashrc/.bash_profile files ?! r tia r PS. etcat qpkg cant find them !? I am not at my gentoo box right now, but I think they should be in the bash package. BTW, you are probably looking for the wrong files. Normaly if you create a new user then a home

[gentoo-user] .bashrc .bash_profile

2003-01-30 Thread Bob Lockie
.bashrc runs everytime a shell is opened and .bash_profile is run only when a user logs in. My question then is why the default .bashrc is empty and the default .bash_profile has: $ more .bash_profile # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU