GOPATH after

This commit is contained in:
Gogs 2016-12-03 10:43:49 +00:00
parent b347504d13
commit 94c57824ef
1 changed files with 9 additions and 7 deletions

View File

@ -1,13 +1,6 @@
# The path # The path
export PATH=$PATH/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/opt/android-ndk:/opt/android-sdk/tools/:/opt/android-sdk/build-tools/24.0.0/:/usr/lib/emscripten:$HOME/.script/check:$HOME/.gem/ruby/2.3.0/bin:$HOME/.scripts:$HOME/.more-scripts/stop/:$HOME/.more-scripts/ export PATH=$PATH/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/opt/android-ndk:/opt/android-sdk/tools/:/opt/android-sdk/build-tools/24.0.0/:/usr/lib/emscripten:$HOME/.script/check:$HOME/.gem/ruby/2.3.0/bin:$HOME/.scripts:$HOME/.more-scripts/stop/:$HOME/.more-scripts/
# for go
if [ -d /opt/go/bin ]; then
export GOROOT=/opt/go
export GOPATH=$HOME/srcs/go
export PATH=$PATH:$GOROOT/bin
fi
# My editor # My editor
export EDITOR="vim" export EDITOR="vim"
@ -25,3 +18,12 @@ export GOPATH="$HOME/.config/go"
export CC="clang" export CC="clang"
export CXX="clang++" export CXX="clang++"
export WINEDEBUG=-all export WINEDEBUG=-all
# for go
if [ -d /opt/go/bin ]; then
export GOROOT=/opt/go
export GOPATH=$HOME/srcs/go
export PATH=$PATH:$GOROOT/bin
fi