File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -208,9 +208,9 @@ See https://github.com/conda/conda/blob/master/CHANGELOG.md#484-2020-08-06."
208
208
" Cached copy of configuration that Conda sees (including `condarc' , etc).
209
209
Set for the lifetime of the process." )
210
210
211
- (defun conda--get-config ( )
212
- " Return current Conda configuration. Cached for the lifetime of the process ."
213
- (if (not ( eq conda--config nil ))
211
+ (defun conda--get-config ( &optional force-reload )
212
+ " Return current configuration. Cached for the process' lifetime, unless FORCE-RELOAD ."
213
+ (if (and ( not force-reload) ( not ( eq conda--config nil ) ))
214
214
conda--config
215
215
(let ((cfg (conda--call-json " config" " --show" " --json" )))
216
216
(setq conda--config cfg))))
@@ -476,6 +476,12 @@ Returns a list of new path elements."
476
476
477
477
; ; potentially interactive user-exposed functions
478
478
479
+ (defun conda-reload-config ()
480
+ " Force-reloads the Conda configuration and displays it."
481
+ (interactive )
482
+ (let ((cfg (conda--get-config t )))
483
+ (message cfg)))
484
+
479
485
;;;### autoload
480
486
(defun conda-env-deactivate ()
481
487
" Deactivate the current conda env."
You can’t perform that action at this time.
0 commit comments