Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion set-env.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function asdf_update_golang_env --on-event fish_prompt
set --local go_path (asdf which go)
set --local go_path (asdf which go 2>/dev/null)
if test -n "$go_path"
set --local full_path (builtin realpath "$go_path")

Expand Down
2 changes: 1 addition & 1 deletion set-env.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
asdf_update_golang_env() {
local go_path
go_path="$(asdf which go)"
go_path="$(asdf which go 2>/dev/null)"
if [[ -n "${go_path}" ]]; then
export GOROOT
GOROOT="$(dirname "$(dirname "${go_path:A}")")"
Expand Down