You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
470 B
22 lines
470 B
12 years ago
|
#
|
||
|
# Displays Python information.
|
||
|
#
|
||
|
# Authors:
|
||
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
||
|
#
|
||
|
|
||
|
local virtualenv_format
|
||
|
local virtualenv_formatted
|
||
|
|
||
|
# Clean up previous $python_info.
|
||
|
unset python_info
|
||
|
typeset -gA python_info
|
||
|
|
||
|
# Format virtualenv.
|
||
|
if [[ -n "$VIRTUAL_ENV" ]]; then
|
||
|
zstyle -s ':omz:module:python' virtualenv 'virtualenv_format'
|
||
|
zformat -f virtualenv_formatted "$virtualenv_format" "v:${VIRTUAL_ENV:t}"
|
||
|
python_info[virtualenv]="$virtualenv_formatted"
|
||
|
fi
|
||
|
|