Difference between revisions of "Bash dot files"

From braindump
Jump to navigation Jump to search
(Created page with "Login: source /etc/profile if [ -f ~/.bash_profile ]; then source ~/.bash_profile return fi if [ -f ~/.bash_login ]; then source ~/.bash_login return fi ...")
 
Line 5: Line 5:
return
return
fi
fi

if [ -f ~/.bash_login ]; then
if [ -f ~/.bash_login ]; then
source ~/.bash_login
source ~/.bash_login
Line 13: Line 13:
if [ -f ~/.bashrc ]; then
if [ -f ~/.bashrc ]; then
source ~/.bashrc
source ~/.bashrc
fi
return

if [ -f ~/.profile ]; then
source ~/.profile
fi
fi

Revision as of 03:03, 26 January 2011

Login:

source /etc/profile
if [ -f ~/.bash_profile ]; then
   source ~/.bash_profile
   return
fi 

if [ -f ~/.bash_login ]; then 
   source ~/.bash_login
   return
fi

if [ -f ~/.bashrc ]; then 
   source ~/.bashrc
fi
if [ -f ~/.profile ]; then 
   source ~/.profile
fi