From ba0d8411455e54230d105216f5fb37821dc995d1 Mon Sep 17 00:00:00 2001 From: Mark Grimes Date: Fri, 13 Feb 2015 11:57:59 -0500 Subject: [PATCH] Always add /shims to PATH, even when creating duplicates ndenv-init currently checks to see if ndenv/shims is in $PATH and skips adding it if so. This can create issues when we re-enter a shell (ie, using screen or tmux). Always adding ndev/shim to the path is consistent with other *env tools --- libexec/ndenv-init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 )