Skip to content

Commit

Permalink
move shims to end of $PATH
Browse files Browse the repository at this point in the history
- fixes #247
  • Loading branch information
stevegt committed Sep 30, 2022
1 parent f2acd3c commit f9420cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libexec/goenv-init
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ fish )
echo "set -gx GOENV_ROOT $GOENV_ROOT"

echo 'if not contains $GOENV_ROOT/shims $PATH'
echo ' set -gx PATH $GOENV_ROOT/shims $PATH'
echo ' set -gx PATH $PATH $GOENV_ROOT/shims'
echo 'end'
;;
* )
echo "export GOENV_SHELL=$shell"
echo "export GOENV_ROOT=$GOENV_ROOT"

echo 'if [ "${PATH#*$GOENV_ROOT/shims}" = "${PATH}" ]; then'
echo ' export PATH="$GOENV_ROOT/shims:$PATH"'
echo ' export PATH="$PATH:$GOENV_ROOT/shims"'
echo 'fi'
;;
esac
Expand Down

0 comments on commit f9420cd

Please sign in to comment.