Tue Jun 28 14:51:31 PDT 2005

hidden files

To run programs from anywhere within the terminal, three (hidden) files must be placed in the user's directory. The first file should be called .bashrc and looks like the following
if [ -f /sw/bin/init.sh ]; then
  . /sw/bin/init.sh
fi
The second file should be called .bash_profile
if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi
export BASH_ENV=$HOME/.bashrc
The third hidden file should be called .profile
test -r /sw/bin/init.sh && . /sw/bin/init.sh

Posted by Jason Steindorf | Permalink | Categories: computers