Halaman

Kamis, 21 Februari 2013

Initiate your .bashrc in macOSX mountain lion

I have SAC installed in my macbook pro running Mountain Lion OS. I exported some environment variables in .bashrc. Unfortunately it did not work when I started new terminal. so I look around on internet and this trick works well for me.

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.