Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`` does not respect `changeps1` config setting #6996

teake opened this issue Mar 7, 2018 · 1 comment


Copy link

commented Mar 7, 2018

I'm submitting a...

  • bug report
  • feature request

Current Behavior

The file does not respect the changeps1 config setting. In particular his function:

function __conda_add_prompt

seems a bit too happy about always displaying the environment.

This is annoying when your shell theme also display the environment (see e.g. oh-my-fish/theme-agnoster#28).

I'm also a bit puzzle by the lack of prompt changing in the corresponding Bash source file. (Though perhaps that is handled somewhere else?)

Environment Information

`conda info`(excerpt)

     active environment : None
            shell level : 0
          conda version : 4.4.11
    conda-build version : 3.7.0
         python version :
       base environment : /usr/local/var/pyenv/versions/miniconda3-latest  (writable)
           channel URLs :
               platform : osx-64
             user-agent : conda/4.4.11 requests/2.18.4 CPython/3.6.4 Darwin/17.4.0 OSX/10.13.3
                UID:GID : 502:20
             netrc file : None
           offline mode : False

This comment has been minimized.

Copy link

commented Feb 12, 2019

I just add below into top line of function __conda_add_prompt to remove the green (base), quick and dirty. @teake

  set -l fish_conda_changeps1 (conda config --show changeps1 | awk '{print $2}')
  [ $fish_conda_changeps1 = 'False' ]; and return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
4 participants
You can’t perform that action at this time.