Need to run source .bashrc everytime | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Need to run source .bashrc everytime

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 09-22-2006
kalyanraj kalyanraj is offline
Registered User
 
Join Date: Sep 2006
Last Activity: 11 June 2007, 12:39 AM EDT
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Need to run source .bashrc everytime

hi all,

I've included some variables in my .bashrc file. But everytime i'm logging in i need to source my .bashrc file to make effect of my variables.

i'm having an account on a highly secured production environment.

I've the following in my ~/.bashrc file


Code:
alias cls=clear

How to make it work without making source.

Thanks a ton,
Kalyan

Last edited by kalyanraj; 09-22-2006 at 05:42 AM..
Sponsored Links
    #2  
Old 09-22-2006
apoorvasharma80 apoorvasharma80 is offline
Registered User
 
Join Date: Aug 2006
Last Activity: 20 May 2008, 9:56 AM EDT
Posts: 69
Thanks: 0
Thanked 1 Time in 1 Post
Have you tried to read the man on bash? It says the bashrc file is read by the system when you open a subshell. If you want them to be set on the first place then put them in your .profile.

regards
Apoorva Kumar
Sponsored Links
    #3  
Old 09-22-2006
kalyanraj kalyanraj is offline
Registered User
 
Join Date: Sep 2006
Last Activity: 11 June 2007, 12:39 AM EDT
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
hi,

I modified my ~/.profile file and it worked for me.

Thanks,
Kalyan
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
To move multiple files to a new folder everytime jagadeeshn04 Shell Programming and Scripting 1 02-22-2012 03:03 PM
shell script : log to txt and insert new line everytime peuceul UNIX for Dummies Questions & Answers 1 01-31-2012 04:20 AM
Script run everytime a new terminal window is opened amason0508 UNIX for Dummies Questions & Answers 1 02-22-2011 06:50 PM
Why does my webserver stop everytime I exit my session? kenny123m UNIX for Dummies Questions & Answers 6 04-16-2007 05:38 AM
Makefile relinks everytime bellings Shell Programming and Scripting 10 06-17-2005 03:54 PM



All times are GMT -4. The time now is 12:30 PM.