oh-my-fish / theme-bobthefish

A Powerline-style, Git-aware fish theme optimized for awesome.
MIT License
1.44k stars 222 forks source link

hide python environment name and some timing status #369

Closed donghao1393 closed 1 week ago

donghao1393 commented 1 week ago

Hi, my fish shell is showing something in the right of the command line with python environment name and some timing status. Can we hide them?

 dong.hao  ⎈ prod:   ³ base  ~/Documents
$ echo                                                                                                                                                                                                  (base) 609ms
donghao1393 commented 1 week ago

I have figured out that the timing could be disabled.

set -g theme_display_cmd_duration no

But the python environment was still showing twice. Does anyone know how could we hide the second appearing?

bobthecow commented 1 week ago

if you're seeing python info twice, you're probably using virtual env (or something similar) that adds their own things to the prompt.

if it's virtual env, you can fix it by setting set -x VIRTUAL_ENV_DISABLE_PROMPT 1

you can also disable bobthefish's python info with set -g theme_display_virtualenv no

donghao1393 commented 1 week ago

if you're seeing python info twice, you're probably using virtual env (or something similar) that adds their own things to the prompt.

if it's virtual env, you can fix it by setting set -x VIRTUAL_ENV_DISABLE_PROMPT 1

you can also disable bobthefish's python info with set -g theme_display_virtualenv no

Hi, thank you for your response. I am using miniconda. So I have enabled the display of env name in front of shell by set -g theme_display_virtualenv yes 2  donghao  ⎈ orbstack:   ³ base  ~/Downloads But, it was showing twice in a new line. $ (base) set -x VIRTUAL_ENV_DISABLE_PROMPT 1 is not working

donghao1393 commented 1 week ago

I successfully moved the display of conda environment name from right to left to avoid the long space by the following: set -g CONDA_LEFT_PROMPT yes

bobthecow commented 1 week ago

right. bobthefish is adding the one in the left prompt. miniconda is adding the one to the right.

i don't actually use anaconda/miniconda, so i can't tell you how to remove the one on the right. set -x VIRTUAL_ENV_DISABLE_PROMPT 1 is how you disable the virtualenv equivalent. There is probably something like that for miniconda.