diff --git a/libexec/ndenv-init b/libexec/ndenv-init index 6f2338b..b9d57db 100755 --- a/libexec/ndenv-init +++ b/libexec/ndenv-init @@ -79,9 +79,9 @@ fi mkdir -p "${NDENV_ROOT}/"{shims,versions} -if [[ ":${PATH}:" != *:"${NDENV_ROOT}/shims":* ]]; then - echo 'export PATH="'${NDENV_ROOT}'/shims:${PATH}"' -fi +# Don't check to see if it is already included. This can cause problems +# when reentering a shell (ie, via screen or tmux). +echo 'export PATH="'${NDENV_ROOT}'/shims:${PATH}"' case "$shell" in bash | zsh )