-
-
Notifications
You must be signed in to change notification settings - Fork 978
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
Allow to show conda environment basename #594
Comments
The minimal change I see here is from:
to
although this behaviour could be configurable. |
Related to this: the |
@memeplex unless there's a good use case for making this configurable, I think we'd prefer to stick with simply using the base name ( |
Do you think |
I have no experience, nor do I use it, but is that the way conda is usually used, always active and (often) on |
Yes, it's usually sourced in your shell rc file so it's active and it prepends |
General information
System report (output of
prompt_pure_system_report
):''
❯
1.13.0
1.8.4
typeset -g PROMPT=$'%F{${prompt_pure_colors[path]}}%~%f %}%(12V.%F{$prompt_pure_colors[virtualenv]}%12v%f .)%(?.%F{$prompt_pure_colors[prompt:success]}.%F{$prompt_pure_colors[prompt:error]})${prompt_pure_state[prompt]}%f '
typeset -g -A prompt_pure_colors=( [execution_time]=yellow [git:action]=yellow [git:arrow]=cyan [git:branch]=242 [git:branch:cached]=red [git:dirty]=218 [git:stash]=cyan [host]=242 [path]=blue [prompt:continuation]=242 [prompt:error]=red [prompt:success]=magenta [user]=242 [user:root]=default [virtualenv]=242 )
export TERM=xterm-256color
export VIRTUAL_ENV_DISABLE_PROMPT=12
export CONDA_CHANGEPS1=no
Other information
I have:
I don't think any of this applies, the problem is specific to Pure and it's clear from source code inspection.
Problem description
When you use a custom
CONDA_ENVS_PATH
conda shows by default the entire env path (and not just it's name) which usually is too large for a prompt. The usual trick is to configureenv_prompt '({name})'
in.condarc
. But pure ignores this and just reads the name fromCONDA_DEFAULT_ENV
which is the entire path. Please add an option to only show the basename, I believe this is an important use case for a prompt that supports conda and, at the same time, tries to be non-invasive.Reproduction steps
My
.zshrc
:The text was updated successfully, but these errors were encountered: