environment variables

Daniel R . Kilbourne drk@voyager.net
Wed, 15 Nov 2000 13:02:22 -0500


or, if you want a separate rc file for csh and tcsh, tcsh can use ~/.tcshrc 

here's an example if you want it:

----begin crap

dan:drk:[12:54pm]:~> cat .tcshrc 
# .tcshrc                       
                                
# User specific aliases and functions
                                
alias rm 'rm -i'                
alias cp 'cp -i'                
alias mv 'mv -i'                
alias cls 'clear'               
alias sl 'ls'
alias drk '/usr/local/bin/ssh -l drk drk.voyager.net'
alias netophilia '/usr/local/bin/ssh -l drk netophilia.net'
alias last '/usr/bin/last | more'
alias xscreensaver '/usr/X11R6/bin/xscreensaver -timeout 10 -lock-mode -no-splash &'
alias xlock '/usr/X11R6/bin/xscreensaver-command -select 79'
                                
setenv PATH "/usr/local/sbin:/usr/sbin:/sbin:$PATH"
setenv LD_LIBRARY_PATH "/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib:/usr/local/include/"
setenv AUDIOFILE_CONFIG "/usr/local/bin/audiofile-config"
                                
set tempuser=`exec whoami`      
set prompt="%S%m%s:%U${tempuser}%u:[%@]:%~> "
unset autologout

----end crap


also, FYI - order matters in your path statement. In this example, when you type a command - the first place looked at is /usr/local/sbin, then /usr/sbin, then /sbin, so on......



Dpk extolled:
> On Wed, Nov 15, 2000 at 12:32:43PM -0500, Scott Overfield 7239 wrote:
> 
>    ummm..
> 
>    i know this is a newby question, but how can i add directories to
>    my search path and make them stay?
> 
> Depends on what shell you use, but this is done from rc files. Common
> ones:
> 
>    bash:     $HOME/.bashrc
>    csh/tcsh: $HOME/.cshrc
>    ksh:      $HOME/.profile
> 
> Dennis Kelly
> Network Administrator
> College of Engineering
> Michigan State University
> _______________________________________________
> linux-user mailing list
> linux-user@egr.msu.edu
> http://www.egr.msu.edu/mailman/listinfo/linux-user

-- 
--------------------------------
Daniel R. Kilbourne
daniel.kilbourne@voyager.net
Network Engineering
Voyager.net - A CoreComm Company
________________________________