diff options
author | Mike Crute <crutem@amazon.com> | 2019-05-21 11:52:08 +0200 |
---|---|---|
committer | Mike Crute <crutem@amazon.com> | 2019-05-21 11:52:08 +0200 |
commit | 95f753a8c4da81f87b08a504dabd49ebd9dbeb17 (patch) | |
tree | 105128c23e62029ed7891d880fb8e7cb6aa0bcd8 /.bashrc | |
parent | 2ee5a1745ecab6ac17667781b1e428ba2bb1f4dd (diff) | |
download | dotfiles-95f753a8c4da81f87b08a504dabd49ebd9dbeb17.tar.bz2 dotfiles-95f753a8c4da81f87b08a504dabd49ebd9dbeb17.tar.xz dotfiles-95f753a8c4da81f87b08a504dabd49ebd9dbeb17.zip |
Go setup
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -226,6 +226,25 @@ export RSPEC_FORMAT="documentation" | |||
226 | alias testify="watchr ~/.watchr.rb" | 226 | alias testify="watchr ~/.watchr.rb" |
227 | 227 | ||
228 | # | 228 | # |
229 | # Go Setup | ||
230 | # | ||
231 | # Support versions of go < 1.12 | ||
232 | if [[ -d "$HOME/go" ]]; then | ||
233 | export GOPATH="$HOME/go" | ||
234 | else | ||
235 | # This is still needed in go > 1.12 but is used only for the module cache | ||
236 | # so put it somewhere reasonable. | ||
237 | if [[ ! -d "$HOME/.cache/go-path" ]]; then | ||
238 | mkdir -p "$HOME/.cache/go-path" | ||
239 | fi | ||
240 | export GOPATH="$HOME/.cache/go-path" | ||
241 | fi | ||
242 | |||
243 | if [[ -d /usr/local/go ]]; then | ||
244 | add_to_path_var PATH "/usr/local/go/bin" | ||
245 | fi | ||
246 | |||
247 | # | ||
229 | # SETUP SYSTEM PATHS | 248 | # SETUP SYSTEM PATHS |
230 | # | 249 | # |
231 | # Start clean with stuff we want to override the system path | 250 | # Start clean with stuff we want to override the system path |
@@ -282,10 +301,6 @@ if [[ -d /Applications/Postgres.app ]]; then | |||
282 | export DYLD_FALLBACK_LIBRARY_PATH | 301 | export DYLD_FALLBACK_LIBRARY_PATH |
283 | fi | 302 | fi |
284 | 303 | ||
285 | if [[ -d /usr/local/go ]]; then | ||
286 | add_to_path_var PATH "/usr/local/go/bin" | ||
287 | fi | ||
288 | |||
289 | export PATH CFLAGS LDFLAGS | 304 | export PATH CFLAGS LDFLAGS |
290 | unset _OPATH | 305 | unset _OPATH |
291 | 306 | ||