Creating Custom SHELL Profiles

Purpose: To create custom SHELL profiles to run while using Terminal

Bash SHELL:

Create .bash_profile to source your .bashrc in your home directory (i.e. cd ~): 

vi, vim, or pico ~/.bash_profile
if [ -f ~/.bashrc ]; then
   source ~/.bashrc
fi


Create .bashrc for custom SHELL commands and paths in your home directory (i.e. cd ~):

vi, vim, or pico ~/.bashrc

Example of bashrc:

PS1='\u@\h> '

PATH=$PATH:/usr/local/gfortran/bin:/opt/local:/opt/igpp:/usr/local/bin:/usr/local/sac/bin
PATH=$PATH:/Applications:/Applications/Utilities:/Developer/Applications

export PATH=/usr/bin:$PATH
export OPENWINHOME=/usr/X11R6

alias ls='ls -F'
alias mv='mv -i'
alias cp='cp -i'

alias tedit='open -a /Applications/TextEdit.app/'
alias xcode='open -a /Applications/Xcode.app/'
alias fix='chmod 755'