Skip to content

Instantly share code, notes, and snippets.

@giulioungaretti
Created July 21, 2015 08:56
Show Gist options
  • Save giulioungaretti/76db041b55fd37e6a0ee to your computer and use it in GitHub Desktop.
Save giulioungaretti/76db041b55fd37e6a0ee to your computer and use it in GitHub Desktop.
#! /bin/sh
#
# updateGOPATH.sh
# Copyright (C) 2015 giulio <giulioungaretti@me.com>
#
# Distributed under terms of the MIT license.
#
# this exports GB_PROJECT_DIR
GB_PROJECT_DIR=$(gb env)
GB_PROJECT_DIR=$(echo $GB_PROJECT_DIR | sed s/\"//g )
GB_PROJECT_DIR=$(echo $GB_PROJECT_DIR | sed s/GB_PROJECT_DIR\=//g )
export GB_PROJECT_DIR=$GB_PROJECT_DIR
export GOPATH=$GOPATH:$GB_PROJECT_DIR:$GB_PROJECT_DIR/vendor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment