Browse Source

Split GOPATH into internal vs external

master
Noah Petherbridge 4 years ago
parent
commit
3efed09937
3 changed files with 14 additions and 8 deletions
  1. +4
    -1
      home/.bashrc
  2. +8
    -5
      home/.editorconfig
  3. +2
    -2
      home/.zshrc

+ 4
- 1
home/.bashrc 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'


+ 8
- 5
home/.editorconfig 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



+ 2
- 2
home/.zshrc 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


Loading…
Cancel
Save