aboutsummaryrefslogtreecommitdiff
path: root/.path
diff options
context:
space:
mode:
authorgxlin <[email protected]>2021-08-20 23:18:08 +0800
committergxlin <[email protected]>2021-08-20 23:18:08 +0800
commit455bc26edb8bf1e2512cd4739eca82a6b528e9c5 (patch)
treedbb26f50ef468eb72495c2bb1ab51a638fa54c05 /.path
parent558d3547645636c67bbb2d18b0dfff35f9d437c6 (diff)
downloaddotfiles-455bc26edb8bf1e2512cd4739eca82a6b528e9c5.tar.gz
dotfiles-455bc26edb8bf1e2512cd4739eca82a6b528e9c5.tar.bz2
dotfiles-455bc26edb8bf1e2512cd4739eca82a6b528e9c5.zip
Update config
Diffstat (limited to '.path')
-rwxr-xr-x.path9
1 files changed, 9 insertions, 0 deletions
diff --git a/.path b/.path
new file mode 100755
index 0000000..b2e4d7d
--- /dev/null
+++ b/.path
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+[ -d $HOME/bin ] && export PATH=$PATH:$HOME/bin
+
+if command -v go &> /dev/null
+then
+ export GOPATH=$(go env GOPATH)
+ export PATH=$PATH:$(go env GOPATH)/bin
+fi