Skip to content

Commit

Permalink
Cache versions and make it faster (#425)
Browse files Browse the repository at this point in the history
* cache versions and make it faster

* perf fix even simpler
  • Loading branch information
ChronosMasterOfAllTime authored Dec 20, 2024
1 parent 9be40df commit 4ee7f09
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions libexec/goenv-commands
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ IFS=: paths=($PATH)
shopt -s nullglob

{
for path in "${paths[@]}"; do
# goenv-init uses --sh, don't output special commands then
if [ -z "$sh" ]; then
# Output special commands (plugins and version identifiers)
echo install
echo latest
echo system
echo uninstall
goenv-versions --bare
fi
# goenv-init uses --sh, don't output special commands then
if [ -z "$sh" ]; then
# Output special commands (plugins and version identifiers)
echo install
echo latest
echo system
echo uninstall
goenv-versions --bare
fi

for path in "${paths[@]}"; do
for command in "${path}/goenv-"*; do
command="${command##*goenv-}"
if [ -n "$sh" ]; then
Expand Down

0 comments on commit 4ee7f09

Please sign in to comment.