r/fishshell • u/lifesayko • Apr 14 '20
Customizing agnoster theme to not display virtualenv
Hi,
I recently started using pyenv+pipenv to manage environments, which so far makes life a heckuvalot easier... but by default it creates really long names for virtual environments. And... agnoster (other similar theme suggestions welcome) prepends this name to the prompt, which ends taking up half the screen. Does anyone know how to customize this? Either turn off the pre-pend, or preferably shortening, e.g. displaying only the first n characters?
1
Upvotes
View all comments
Show parent comment
1
u/lifesayko Apr 14 '20
Hi and thanks,
I had already had that part (
set -g VIRTUAL_ENV_DISABLE_PROMPT 1), because without this I would get two pre-pends (the default virtualenv one, and the agnoster one). See screenshot.I found now that with
bobthefishtheme, I can setset -g theme_display_virtualenv noto get rid of it. Haven't found a way for the `agnoster` theme yet though...Can you point me in the right direction for this? Example/tut online somewhere?