asdf-golang/set-env.fish
Sora Morimoto d8dec15ccc
Hygiene (#113)
* Add Makefile for Hygiene

Signed-off-by: Sora Morimoto <sora@morimoto.io>

* make format

Signed-off-by: Sora Morimoto <sora@morimoto.io>

---------

Signed-off-by: Sora Morimoto <sora@morimoto.io>
Co-authored-by: Kenny Parnell <k.parnell@gmail.com>
2023-07-19 09:32:53 -04:00

9 lines
236 B
Fish

function asdf_update_golang_env --on-event fish_prompt
set --local go_path (asdf which go)
if test -n "$go_path"
set --local full_path (builtin realpath "$go_path")
set -gx GOROOT (dirname (dirname "$full_path"))
end
end