I created some new aliases in my .bashrc file and did
Now, everytime I open my terminal it always comes with the
How do I remove that?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
That's the "base" environment from Anaconda or Miniconda. It means the Python environment from
conda is enabled by default.
There're two solutions.
Just disable the base environment, make sure your
conda >= 4.6. Whenever you wanna use Python, enable an environment from
conda manually with following command,
# run this in an interactive shell # enable environment called "base", the default env from conda conda activate base # deactivate an environment conda deactivate
Enable the base environment, which is the default behavior of
conda, but don't modify your prompt. Run the following command in an interactive shell once.
conda config --set changeps1 false
The following code in the .bashrc file should initialize an anaconda environment. Just remove them.
# >>> conda initialize >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$('/Users/proshore/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2$ if [ $? -eq 0 ]; then eval "$__conda_setup" else if [ -f "/Users/proshore/opt/anaconda3/etc/profile.d/conda.sh" ]; then . "/Users/proshore/opt/anaconda3/etc/profile.d/conda.sh" else export PATH="/Users/proshore/opt/anaconda3/bin:$PATH" fi fi unset __conda_setup # <<< conda initialize <<<
This happens due to the installation o Anaconda or Miniconda. Depending on your mac version, you can just add one more line at the end of "~/.zshrc" or "~/.bashrc" with vim or any of your fav editors.
Save the file, and now whenever you open the terminal again you won't see (base).