Get SAC file
tar xfvz sac.tgz
mv sac $HOME
cd $HOME
go to .bashrc and exported all variables you need :
export SACHOME=$HOME/sac
export PATH=${PATH}:${SACHOME}/bin
export SACAUX=${SACHOME}/aux
export SAC_DISPLAY_COPYRIGHT=0
export SAC_USE_DATABASE =1
export SAC_PPK_LARGE_CROSSHAIRS=1
and the edit or create new one .bash_profile :
[[ -s ~/.bashrc ]] && source ~/.bashrc
this simple code init my .bashrc everytime I open terminal.