Skip to content

Commit

Permalink
set gobin
Browse files Browse the repository at this point in the history
  • Loading branch information
lothar1998 committed Jul 10, 2024
1 parent 0e86b1d commit cf31fda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions set-env.fish
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ function asdf_update_golang_env --on-event fish_prompt

set -gx GOROOT (dirname (dirname "$full_path"))
set -gx GOPATH (dirname "$GOROOT")/packages
set -gx GOBIN (dirname "$GOROOT")/bin
end
end
3 changes: 3 additions & 0 deletions set-env.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ asdf_update_golang_env() {

export GOPATH
GOPATH="$(dirname "${GOROOT:A}")/packages"

export GOBIN
GOBIN="$(dirname "$(dirname "${go_path:A}")")/bin"
fi
}

Expand Down

0 comments on commit cf31fda

Please sign in to comment.