From 95fa7a35ad92d3706f780c38fb256a6327385045 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 10 May 2015 17:36:03 +0200 Subject: [PATCH] shell: do not use basename, but bash --- bin/pyenv-sh-activate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pyenv-sh-activate b/bin/pyenv-sh-activate index 9af102f..6097ab9 100755 --- a/bin/pyenv-sh-activate +++ b/bin/pyenv-sh-activate @@ -68,7 +68,7 @@ if ! pyenv-virtualenv-prefix "${versions}" 1>/dev/null 2>&1; then exit 1 fi -shell="$(basename "${PYENV_SHELL:-$SHELL}")" +shell="${PYENV_SHELL:-${SHELL##*/}}" case "$shell" in bash ) profile="$HOME/.bash_profile"