1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 12:48:01 +00:00

[Fix #297] Check for pythonz before returning

This commit is contained in:
Sorin Ionescu 2012-09-25 12:57:57 -04:00
parent 8ff60ad956
commit 7d68d3ff52

View File

@ -6,8 +6,13 @@
# Sebastian Wiesner <lunaryorn@googlemail.com>
#
# Load pythonz into the shell session.
if [[ -s $HOME/.pythonz/bin/pythonz ]]; then
path=($HOME/.pythonz/bin $path)
fi
# Return if requirements are not found.
if (( ! $+commands[python] )); then
if (( ! $+commands[python] && ! $+commands[pythonz] )); then
return 1
fi
@ -33,11 +38,6 @@ if (( $+commands[virtualenvwrapper_lazy.sh] )); then
source "$commands[virtualenvwrapper_lazy.sh]"
fi
# Load pythonz into the shell session.
if [[ -s $HOME/.pythonz/bin/pythonz ]]; then
path=($HOME/.pythonz/bin $path)
fi
#
# Aliases
#