Spaceship-prompt: [Conda] Double envs.

Created on 10 Sep 2017  路  3Comments  路  Source: denysdovhan/spaceship-prompt

Issue

Conda seems to want to still use the (env) environment prior, despite activating the new Conda feature correctly, so both end up showing up.

Sample of my .zshrc:

# Spaceship
...
SPACESHIP_PYENV_SHOW=false
SPACESHIP_CONDA_SHOW=true
...

Tried switching them all off, all on, etc. The features implemented in #185, work great, and turning off SPACESHIP_CONDA_SHOW removes it from Spaceship.

Unfortunately, it always keeps the ugly (env) prior. Maybe it's just a conda thing.

Screenshot

screenshot

Environment

Operating system: macOS 10.13 Beta
Terminal emulator: iTerm2 3.0.15
ZSH version: zsh 5.4.1 (x86_64-apple-darwin17.0.0)

Relevant .zshrc

Full .zshrc available in my dotfiles.

question

Most helpful comment

By default conda shows the activated environment in prompt. You could disable it by conda config --set changeps1 False.

It's also noted in the doc. Closing this issue now, Feel free to reopen 鉁岋笍

All 3 comments

By default conda shows the activated environment in prompt. You could disable it by conda config --set changeps1 False.

It's also noted in the doc. Closing this issue now, Feel free to reopen 鉁岋笍

Nope, that works for me. Sorry I missed it.

Thanks!

Note for those who also use other shells (like xonsh) where the default conda prompt is still needed, it is also possible to deactivate it using the CONDA_CHANGEPS1=no env variable.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AlecRust picture AlecRust  路  3Comments

JounQin picture JounQin  路  3Comments

olets picture olets  路  3Comments

salmanulfarzy picture salmanulfarzy  路  3Comments

maccius picture maccius  路  3Comments