Stop showing version not installed in precmd (#49)

This commit is contained in:
Yamashita, Yuu
2015-12-18 02:32:01 +00:00
parent b9951fa69c
commit 9414a6bb30

View File

@@ -61,7 +61,7 @@ versions=("$@")
if [ -z "${versions}" ]; then if [ -z "${versions}" ]; then
no_shell=1 no_shell=1
OLDIFS="$IFS" OLDIFS="$IFS"
IFS=: versions=($(pyenv-version-name)) IFS=: versions=($(pyenv-version-name 2>/dev/null))
IFS="$OLDIFS" IFS="$OLDIFS"
fi fi