mirror of
https://github.com/kennyp/asdf-golang.git
synced 2024-10-06 04:32:07 +08:00
d8dec15ccc
* 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>
9 lines
236 B
Fish
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
|