-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add miniconda ENV support #35
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -456,7 +456,11 @@ typeset -gA jovial_affix_lengths=() | |
} | ||
|
||
@jov.set-venv-info() { | ||
if [[ -z ${VIRTUAL_ENV} ]]; then | ||
if [ ! -z $CONDA_DEFAULT_ENV ]; then | ||
export VIRTUAL_ENV=$CONDA_DEFAULT_ENV | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Setting There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. II think the (base) env shoud be placed in the right of the arrow |
||
fi | ||
|
||
if [[ -z ${VIRTUAL_ENV} || ${VIRTUAL_ENV} == "base" ]]; then | ||
jovial_parts[venv]='' | ||
else | ||
jovial_parts[venv]="${JOVIAL_AFFIXES[venv.prefix]}${JOVIAL_PALETTE[venv]}$(basename ${VIRTUAL_ENV})${JOVIAL_AFFIXES[venv.suffix]}" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could move checking
'base'
name related toCONDA_DEFAULT_ENV
.Those modifies separates the checks for the
CONDA_DEFAULT_ENV
variable and its value being'base'
,but that's unnecessary for hidden with
virtualenv
lib.