1
0

Split GOPATH into internal vs external

This commit is contained in:
Noah 2017-01-11 10:40:10 -08:00
parent f61de7e3c0
commit 3efed09937
3 changed files with 14 additions and 8 deletions

View File

@ -17,7 +17,7 @@ elif [[ "$unamestr" == "Darwin" ]]; then
fi
# PATH settings.
export PATH="/usr/sbin:/sbin:/usr/bin:/bin:$HOME/bin:$HOME/go/bin"
export PATH="/usr/sbin:/sbin:/usr/bin:/bin:$HOME/bin:$HOME/go/bin:$HOME/go/.ext/bin"
if [[ $platform == "darwin" ]]; then
# Prefer /usr/local/bin because homebrew
export PATH="/usr/local/bin:$PATH"
@ -41,6 +41,9 @@ if [ -f /usr/bin/virtualenvwrapper.sh ]; then
source /usr/bin/virtualenvwrapper.sh
fi
# Go
export GOPATH="$HOME/go/.ext:$HOME/go"
# Colors!
BLACK='\e[0;30m'
NAVY='\e[0;34m'

View File

@ -1,24 +1,27 @@
# Top-most EditorConfig file
root = true
# Unix-style newlines on every file
# Common settings for all files. I don't specify indent type here, because
# some EditorConfig implementations (notably Atom) will cause default settings
# and behaviors (like tab type auto-detection) to be overridden.
[*]
charset = utf-8
end_of_line = lf
indent_style = tab
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
# Python
[*.py]
indent_style = space
indent_size = 4
[*.{yml,yaml}]
# YAML and Markdown
[*.{yml,yaml,md}]
indent_style = space
indent_size = 2
[*.md]
# CoffeeScript
[*.coffee]
indent_style = space
indent_size = 2

View File

@ -28,7 +28,7 @@ fi
# Normalize the PATH
CORE_PATH="/usr/sbin:/sbin:/usr/bin:/bin"
USR_PATH="/usr/local/sbin:/usr/local/bin:${HOME}/bin:${HOME}/go/bin:${HOME}/android/sdk/platform-tools"
USR_PATH="/usr/local/sbin:/usr/local/bin:${HOME}/bin:${HOME}/go/bin:${HOME}/go/.ext/bin:${HOME}/android/sdk/platform-tools"
if [[ `uname` == "Linux" ]] then export PATH="${CORE_PATH}:${USR_PATH}"
else export PATH="${USR_PATH}:${CORE_PATH}"
fi
@ -38,7 +38,7 @@ export EDITOR="/usr/bin/vim"
export WORKON_HOME=~/.virtualenvs
# Go
export GOPATH="$HOME/go"
export GOPATH="$HOME/go/.ext:$HOME/go"
# Node/npm
if [[ ! -f "${HOME}/.npmrc" ]]; then