我想我可能搞砸了我的bash配置文件,我无法从我的Mac终端访问anaconda
下面是我的bash配置文件,我想知道我是否可以得到一些帮助。我想我可能扯到了一些代码。我开始面对这个问题后,我切换到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 <<<
我的第一个想法是这是一个大量的路径操作。与其在PATH中添加这么多内容,不如考虑将其中一些脚本/应用程序复制到PATH中已有的某个位置。
第二,看起来你需要在这一行换行:
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