forked from sorin-ionescu/prezto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix sorin-ionescu#248] Replace virtualenv_info with python-info
Conflicts: modules/python/README.md
- Loading branch information
Showing
4 changed files
with
48 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# | ||
# 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters