mirror of
https://github.com/SqrtMinusOne/micromamba.el.git
synced 2025-12-10 13:23:02 +03:00
Use fallback environment instead of base
This commit is contained in:
parent
4ffe110f79
commit
9d2e9fce93
1 changed files with 4 additions and 4 deletions
|
|
@ -68,6 +68,9 @@
|
|||
"Whether to activate the base environment by default if no other is preferred.
|
||||
Default nil."
|
||||
:type 'boolean
|
||||
(defcustom micromamba-fallback-environment nil
|
||||
"An environment that micromamba.el activates by default."
|
||||
:type 'string
|
||||
:group 'micromamba)
|
||||
|
||||
(defcustom micromamba-preactivate-hook nil
|
||||
|
|
@ -233,10 +236,7 @@ Returns an alist with the following keys:
|
|||
(when working-dir
|
||||
(or
|
||||
(micromamba--get-name-from-env-yml (micromamba--find-env-yml working-dir))
|
||||
(when (or
|
||||
micromamba-activate-base-by-default
|
||||
(alist-get 'auto_activate_base (micromamba--get-config)))
|
||||
"base")))))
|
||||
micromamba-fallback-environment))))
|
||||
|
||||
(defun micromamba--get-activation-parameters (prefix)
|
||||
"Get activation parameters for the environment PREFIX.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue