aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-06-25 23:21:40 +0800
committerAaron LI <aly@aaronly.me>2019-06-25 23:21:40 +0800
commit3caf45f9cf531e4801bfc15b38dbc0310ece1afb (patch)
treef8bdaff2111c87ebcf4ce92a8546ee0d994b3e41
parent11071e431f11236c6068189b7111dd15f569b089 (diff)
downloaddotfiles-3caf45f9cf531e4801bfc15b38dbc0310ece1afb.tar.bz2
profile: Add GOPATH and update PATH
-rw-r--r--_profile14
1 files changed, 13 insertions, 1 deletions
diff --git a/_profile b/_profile
index f178a00..3d74cf2 100644
--- a/_profile
+++ b/_profile
@@ -49,10 +49,12 @@ _running() {
### Environment Settings -----------------------------------------------
## PATH
+
# Locally installed NPM packages (see also `~/.npmrc`)
if [ -d "${HOME}/.npm-packages/bin" ]; then
_path_prepend "${HOME}/.npm-packages/bin"
fi
+
# Miniconda/Anaconda
if [ -d "${HOME}/miniconda3/bin" ]; then
_CONDA_DIR="${HOME}/miniconda3"
@@ -64,16 +66,26 @@ if [ -n "${_CONDA_DIR}" ]; then
. "${_CONDA_DIR}/etc/profile.d/conda.sh"
unset _CONDA_DIR
fi
+
# Locally installed programs (e.g., Python)
if [ -d "${HOME}/.local/bin" ]; then
_path_prepend "${HOME}/.local/bin"
fi
+
+# Go
+if [ -d "${HOME}/go" ]; then
+ export GOPATH="${HOME}/go"
+ _path_prepend "${GOPATH}/bin"
+fi
+
_path_prepend "${HOME}/bin"
-## Plan 9 from User Space
+
+# Plan 9 from User Space
if [ -d "${HOME}/local/plan9" ]; then
export PLAN9="${HOME}/local/plan9"
_path_append "${PLAN9}/bin"
fi
+
_path_append "/usr/local/sbin"
_path_append "/usr/sbin"
_path_append "/sbin"