summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorMike Crute <crutem@amazon.com>2019-05-21 11:52:08 +0200
committerMike Crute <crutem@amazon.com>2019-05-21 11:52:08 +0200
commit95f753a8c4da81f87b08a504dabd49ebd9dbeb17 (patch)
tree105128c23e62029ed7891d880fb8e7cb6aa0bcd8 /.bashrc
parent2ee5a1745ecab6ac17667781b1e428ba2bb1f4dd (diff)
downloaddotfiles-95f753a8c4da81f87b08a504dabd49ebd9dbeb17.tar.bz2
dotfiles-95f753a8c4da81f87b08a504dabd49ebd9dbeb17.tar.xz
dotfiles-95f753a8c4da81f87b08a504dabd49ebd9dbeb17.zip
Go setup
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc23
1 files changed, 19 insertions, 4 deletions
diff --git a/.bashrc b/.bashrc
index 1e904f9..3246c0d 100644
--- a/.bashrc
+++ b/.bashrc
@@ -226,6 +226,25 @@ export RSPEC_FORMAT="documentation"
226alias testify="watchr ~/.watchr.rb" 226alias testify="watchr ~/.watchr.rb"
227 227
228# 228#
229# Go Setup
230#
231# Support versions of go < 1.12
232if [[ -d "$HOME/go" ]]; then
233 export GOPATH="$HOME/go"
234else
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"
241fi
242
243if [[ -d /usr/local/go ]]; then
244 add_to_path_var PATH "/usr/local/go/bin"
245fi
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
283fi 302fi
284 303
285if [[ -d /usr/local/go ]]; then
286 add_to_path_var PATH "/usr/local/go/bin"
287fi
288
289export PATH CFLAGS LDFLAGS 304export PATH CFLAGS LDFLAGS
290unset _OPATH 305unset _OPATH
291 306