终端启动问题

时间:2019-02-05 13:20:06

标签: bash macos performance terminal

我想加快终端的加载过程,因为当我启动它时,它开始运行某些程序,并且当我尝试关闭窗口时,它会给我这个https://i.stack.imgur.com/8xkWW.png,这意味着它可能必须做bash配置文件:

# Setting PATH for Python 2.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH

# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH

# Setting PATH for Python 3.6
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH

# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH

# Setting PATH for Python 3.7
# The original version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH
# added by Anaconda3 5.3.1 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
    \eval "$__conda_setup"
else
    if [ -f "/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/anaconda3/etc/profile.d/conda.sh"
        CONDA_CHANGEPS1=false conda activate base
    else
        \export PATH="/anaconda3/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda init <<<
alias py="python"
alias cdpy="cd /Users/Sqirel4x2/BitsBobs/Coding/python"
alias editpro="sudo nanos ~/.bash_profile"

如果有人可以帮助加快我的终端负载,那就太好了。

1 个答案:

答案 0 :(得分:0)

加快加载速度的原因是删除Anaconda来测试您的时间:time bash start要解决此问题,请通过以下方法查看您的bash配置文件:sudo nano .bash_profile,然后查看在加载终端之前会发生什么。