I think I may have messed up my bash profile and I am unable to access anaconda from my Mac terminal
Below is my bash profile and I am wondering if I can get some help with it. I think I may have twitched some code. I started facing this issue with this after I switched to Mac OS Ventura
FSL_DIR=/usr/local/fsl
PATH=${FSL_DIR}/share/fsl/bin:${PATH}
export FSL_DIR PATH
. ${FSL_DIR}/etc/fslconf/fsl.sh
export MallocNanoZone=0 && freeview
export FS_LICENSE=$HOME/license.txt
export FREESURFER_HOME=/Applications/freesurfer/7.3.2
source $FREESURFER_HOME/SetUpFreeSurfer.sh
export PATH=/Applications/MATLAB_R2020b.app/bin:$PATH
# auto-inserted by @update.afni.binaries :
export PATH=$PATH:/Users/reubenaddison/abin
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/opt/X11/lib/flat_namespace
# auto-inserted by @update.afni.binaries :
# set up tab completion for AFNI programs
if [ -f $HOME/.afni/help/all_progs.COMP.bash ]
then
source $HOME/.afni/help/all_progs.COMP.bash
fi
## Added by SimNIBS
SIMNIBS_BIN="/Users/reubenaddison/Applications/SimNIBS-4.0/bin"
export PATH=${PATH}:${SIMNIBS_BIN}export PATH=$PATH:/Desktop/workbench/bin_macosx64
export PATH=$PATH:/Applications/workbench/bin_macosx64
export PATH=$PATH:/Applications/workbench/bin_macosx64
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/usr/local/fsl/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/usr/local/fsl/etc/profile.d/conda.sh" ]; then
. "/usr/local/fsl/etc/profile.d/conda.sh"
else
export PATH="/usr/local/fsl/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
My first thought is that is a LOT of path manipulation. Rather than adding so much to PATH, consider copying some of these scripts/apps to some location already in the PATH.
Second, Looks like you need a line break in this line:
export PATH=${PATH}:${SIMNIBS_BIN}export PATH=$PATH:/Desktop/workbench/bin_macosx64
Third, you've got this appended twice. Get rid of one of these.
export PATH=$PATH:/Applications/workbench/bin_macosx64
export PATH=$PATH:/Applications/workbench/bin_macosx64