|
|
|
@ -11,6 +11,8 @@
|
|
|
|
|
|
|
|
|
|
local virtualenv_format
|
|
|
|
|
local virtualenv_formatted
|
|
|
|
|
local version_format
|
|
|
|
|
local version_formatted
|
|
|
|
|
|
|
|
|
|
# Clean up previous $python_info.
|
|
|
|
|
unset python_info
|
|
|
|
@ -30,4 +32,10 @@ if [[ -n "$CONDA_DEFAULT_ENV" ]]; then
|
|
|
|
|
python_info[virtualenv]="$virtualenv_formatted"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
zstyle -s ':prezto:module:python:info:version' format 'version_format'
|
|
|
|
|
if [[ -n "$version_format" ]]; then
|
|
|
|
|
zformat -f version_formatted "$version_format" "v:${$(python3 --version)#Python }"
|
|
|
|
|
python_info[version]="$version_formatted"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# }
|
|
|
|
|