Split GOPATH into internal vs external
This commit is contained in:
parent
f61de7e3c0
commit
3efed09937
|
@ -17,7 +17,7 @@ elif [[ "$unamestr" == "Darwin" ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# PATH settings.
|
# 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
|
if [[ $platform == "darwin" ]]; then
|
||||||
# Prefer /usr/local/bin because homebrew
|
# Prefer /usr/local/bin because homebrew
|
||||||
export PATH="/usr/local/bin:$PATH"
|
export PATH="/usr/local/bin:$PATH"
|
||||||
|
@ -41,6 +41,9 @@ if [ -f /usr/bin/virtualenvwrapper.sh ]; then
|
||||||
source /usr/bin/virtualenvwrapper.sh
|
source /usr/bin/virtualenvwrapper.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Go
|
||||||
|
export GOPATH="$HOME/go/.ext:$HOME/go"
|
||||||
|
|
||||||
# Colors!
|
# Colors!
|
||||||
BLACK='\e[0;30m'
|
BLACK='\e[0;30m'
|
||||||
NAVY='\e[0;34m'
|
NAVY='\e[0;34m'
|
||||||
|
|
|
@ -1,24 +1,27 @@
|
||||||
# Top-most EditorConfig file
|
# Top-most EditorConfig file
|
||||||
root = true
|
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
|
charset = utf-8
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
indent_style = tab
|
|
||||||
indent_size = 4
|
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
|
||||||
|
# Python
|
||||||
[*.py]
|
[*.py]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
[*.{yml,yaml}]
|
# YAML and Markdown
|
||||||
|
[*.{yml,yaml,md}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[*.md]
|
# CoffeeScript
|
||||||
|
[*.coffee]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ fi
|
||||||
|
|
||||||
# Normalize the PATH
|
# Normalize the PATH
|
||||||
CORE_PATH="/usr/sbin:/sbin:/usr/bin:/bin"
|
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}"
|
if [[ `uname` == "Linux" ]] then export PATH="${CORE_PATH}:${USR_PATH}"
|
||||||
else export PATH="${USR_PATH}:${CORE_PATH}"
|
else export PATH="${USR_PATH}:${CORE_PATH}"
|
||||||
fi
|
fi
|
||||||
|
@ -38,7 +38,7 @@ export EDITOR="/usr/bin/vim"
|
||||||
export WORKON_HOME=~/.virtualenvs
|
export WORKON_HOME=~/.virtualenvs
|
||||||
|
|
||||||
# Go
|
# Go
|
||||||
export GOPATH="$HOME/go"
|
export GOPATH="$HOME/go/.ext:$HOME/go"
|
||||||
|
|
||||||
# Node/npm
|
# Node/npm
|
||||||
if [[ ! -f "${HOME}/.npmrc" ]]; then
|
if [[ ! -f "${HOME}/.npmrc" ]]; then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user