oh-my-fish / theme-agnoster

MIT License
95 stars 64 forks source link

Prompt displays the active conda environment twice #70

Open mvartuc opened 4 months ago

mvartuc commented 4 months ago

Image for reference: image

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

sn0cr commented 4 months ago

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 commented 4 months ago

@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 commented 4 months ago

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.