Skip to content

Instantly share code, notes, and snippets.

@sixg0000d
Last active September 8, 2021 13:35
Show Gist options
  • Save sixg0000d/2f3627d2434df8c34eea078c168b0adc to your computer and use it in GitHub Desktop.
Save sixg0000d/2f3627d2434df8c34eea078c168b0adc to your computer and use it in GitHub Desktop.
Rest all of go environment variables
#!/usr/bin/fish
for e in (go env | awk -F '=' '{ print $1 }')
go env -u $e
end
#!/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