Skip to content

Instantly share code, notes, and snippets.

@soyfrien
Created November 7, 2018 21:02
Show Gist options
  • Select an option

  • Save soyfrien/5b0160f85bca736e62cb993b4ab17518 to your computer and use it in GitHub Desktop.

Select an option

Save soyfrien/5b0160f85bca736e62cb993b4ab17518 to your computer and use it in GitHub Desktop.
hpc sample .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin:$HOME/bin
export PATH
AUTOPTXPATH=/rigel/psych/app/autoPtx
#--------BEGIN FSL SETUP---------#
PATH=$PATH:/rigel/psych/app/fsl/bin:${AUTOPTXPATH}
export PATH
export FSLDIR=/rigel/psych/app/fsl
. /rigel/psych/app/fsl/etc/fslconf/fsl.sh
#export OMP_NUM_THREADS=1
#--------END FSL SETUP-----------#
#--------BEGIN FREESURFER SETUP--#
export FREESURFER_HOME=/rigel/psych/app/freesurfer/v6
source $FREESURFER_HOME/SetUpFreeSurfer.sh
#export SUBJECTS_DIR=<path to subject data>
#--------END FREESURFER SETUP----#
#--------SETUP ANTs--------------#
export ANTSPATH=/rigel/psych/app/ants/v2.2/bin
PATH=$PATH:${ANTSPATH}
export PATH
#--------END ANTs SETUP----------#
#--------SETUP R LIBRARIES-------#
#export R_LIBS_SITE=/rigel/psych/app/R/library:~/.local/lib/python2.7/site-packages:${R_LIBS_SITE}
export R_LIBS_SITE=/rigel/psych/app/R/library:${R_LIBS_SITE}
#--------END R LIB SETUP---------#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment