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

Prompt displays the active conda environment twice #70

Open
mvartuc opened this issue May 8, 2024 · 3 comments
Open

Prompt displays the active conda environment twice #70

mvartuc opened this issue May 8, 2024 · 3 comments

Comments

@mvartuc
Copy link

mvartuc commented May 8, 2024

Image for reference:
image

I tried tinkering with the conda init section in config.fish but it completely broke my terminal.
Any ideas?

@sn0cr
Copy link
Collaborator

sn0cr commented May 11, 2024

Hi @mvartuc, what is broken from your perspective? To me it seems like that the line height does not correspond with the height of the arrows that the theme is using.

@mvartuc
Copy link
Author

mvartuc commented May 11, 2024

@sn0cr hey, sorry for the confusion. The screenshot is not the broken state. To rephrase my issue: my prompt displays the active conda environment twice (one near the line start and one at the end in parentheses).
When I tried to remove the conda init section in confis.fish I completely broke my terminal (meaning it was just displaying an error and nothing else). So I had to reverse that. That part actually doesn't have anything to do with the issue, which is my prompt displays conda env twice.

@sn0cr
Copy link
Collaborator

sn0cr commented May 12, 2024

Unfortunately, I don't use Conda, so I have no experience what could go wrong. You can see in the fish_prompt.fish L181 how the Conda segment is created. The only hunch I have, is that somehow you also have a Python virtual environment active? You could try to remove the if-statement here and see if that fixes your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants