Last active
September 8, 2021 13:35
-
-
Save sixg0000d/2f3627d2434df8c34eea078c168b0adc to your computer and use it in GitHub Desktop.
Rest all of go environment variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/fish | |
for e in (go env | awk -F '=' '{ print $1 }') | |
go env -u $e | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for e in $(go env | awk -F '=' '{ print $1 }'); do | |
go env -u $e | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment