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

`conda.fish` does not respect `changeps1` config setting #6996

Open
teake opened this issue Mar 7, 2018 · 1 comment

Comments

@teake
Copy link
Contributor

commented Mar 7, 2018

I'm submitting a...

  • bug report
  • feature request

Current Behavior

The conda.fish 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 : 3.6.4.final.0
       base environment : /usr/local/var/pyenv/versions/miniconda3-latest  (writable)
           channel URLs : https://repo.continuum.io/pkgs/main/osx-64
                          https://repo.continuum.io/pkgs/main/noarch
                          https://repo.continuum.io/pkgs/free/osx-64
                          https://repo.continuum.io/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/r/osx-64
                          https://repo.continuum.io/pkgs/r/noarch
                          https://repo.continuum.io/pkgs/pro/osx-64
                          https://repo.continuum.io/pkgs/pro/noarch
               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
@supacyan

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
Projects
None yet
4 participants
You can’t perform that action at this time.