How to set the default rc file from .bashrc to our own file.

How to set the default rc file from .bashrc to our own file.

Post by Vivek » Mon, 11 Dec 2000 13:55:52



Hi

How do I do this :
        When ever I type "bash" on the command prompt, insted of executing the
".bashrc" file I want it to execute some othe file of my choice.

        This can be achived in Kork-shell by setting the environment variable
"ENV" to the file that you want to execute in lieu of ".kshrc". But I
want to know how It can be achived in bash.

Thanks.

 
 
 

How to set the default rc file from .bashrc to our own file.

Post by Magic Tu » Tue, 12 Dec 2000 06:21:42


See 'man bash'.

bash --rcfile <filename>
that might be, what you want.

MagicTux

Quote:> Hi

> How do I do this :
>    When ever I type "bash" on the command prompt, insted of executing the
> ".bashrc" file I want it to execute some othe file of my choice.

>    This can be achived in Kork-shell by setting the environment variable
> "ENV" to the file that you want to execute in lieu of ".kshrc". But I
> want to know how It can be achived in bash.

> Thanks.

--

 
 
 

How to set the default rc file from .bashrc to our own file.

Post by Kurt J. Lanz » Tue, 12 Dec 2000 23:40:20



> Hi

> How do I do this :
>         When ever I type "bash" on the command prompt, insted of executing the
> ".bashrc" file I want it to execute some othe file of my choice.

>         This can be achived in Kork-shell by setting the environment variable
> "ENV" to the file that you want to execute in lieu of ".kshrc". But I
> want to know how It can be achived in bash.

> Thanks.

If you can't file a clue in the man page (ALWAYS READ
THE MAN PAGE FIRST), you could replace .bashrc with a
link (hard or symbolic) to the file of your choice. But
why in hell do you want to do this? Why are you
prejudiced against the name .bashrc? :=)
 
 
 

How to set the default rc file from .bashrc to our own file.

Post by kevin_coll.. » Wed, 13 Dec 2000 09:59:22


Hi,

    As described in 'man bash', ENV works the same as in ksh... My bash
is version 1.14.7

Kevin



Quote:> Hi

> How do I do this :
>    When ever I type "bash" on the command prompt, insted of
executing the
> ".bashrc" file I want it to execute some othe file of my choice.

>    This can be achived in Kork-shell by setting the environment
variable
> "ENV" to the file that you want to execute in lieu of ".kshrc". But I
> want to know how It can be achived in bash.

> Thanks.

Sent via Deja.com http://www.deja.com/
Before you buy.
 
 
 

1. HELP!!!: What rc file does Slackware use (.bashrc, .cshrc, .login)?


Path: news.netvoyage.net!andyngo

Newsgroups: alt.os.linux
Subject: How do I configure .login, .cshrc, or .bashrc???
Date: 11 Nov 1995 00:00:25 GMT
Organization: Netvoyage Internet Access Provider
Lines: 23

NNTP-Posting-Host: digital.netvoyage.net
X-Newsreader: TIN [version 1.2 PL2]

Hello,

I just finished installing Slackware (version 1.2.8 from 4-cd-set
infomagic August 1995 edition).  Everything is working fine.
However, when linux boots up and I log in, I can't seem to
find the config files (.cshrc, .login, or .bashrc) that it
executes once I log in.  The shell it is using is bash but
I can find .bashrc anywhere; or even .login or .cshrc.  All
I can find is .lessrc and a directory named .termrc.  What
files is it executing?  I want to customize these files
such as aliasing, etc.  Please help!!!  

 *************************************************************************
 _______     ________     _____   __        Andy Ngo    
 ___    |    ___  __ \    ___  | / /        431 S. Orange Ave. #A
 __  /| |    __  / / /    __   |/ /         Monterey Park, CA  91755
 _  ___ |___ _  /_/ / ___ _  /|  /  ___     (818) 307-9554
 /_/  |_|_(_)/_____/  _(_)/_/ |_/   _(_)



 *************************************************************************

2. Having Two Anonymous FTP Users?

3. Setting default file permissions on ftp'd files.

4. How to automatically restart stopped daemons

5. I want FTP default to be -rwxrwxrwx files, NOT system default like -rw-rw-rw- files !

6. Linux - NFS mounting a UCX export drive.

7. Looking for color_xterm

8. set -o vi will not work when putting command in .bashrc file

9. .bashrc setting default printer

10. Where's RedHat rc.inet1, rc.inet2 files??

11. /etc/rc.d/rc.sysinit: /proc/sys/kernel/sysrq: No such file or directory

12. REQUEST: /etc/rc.d/rc.inet2 file from 1.2.8 slackware