-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
53 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,31 @@ | ||
# go | ||
# export GOPATH=${HOME}/.golang | ||
# export GOROOT=$(go env GOROOT ) | ||
# export PATH=${GOPATH}/bin:$(go env GOPATH)/bin:${PATH} | ||
|
||
source ~/.config/zsh/functions/exists | ||
|
||
# https://zenn.dev/ktakayama/articles/27b9d6218ed2f0ee9992 | ||
if exists "anyenv" | ||
then | ||
if ! [ -f /tmp/anyenv.cache ]; then | ||
anyenv init - --no-rehash > /tmp/anyenv.cache | ||
zcompile /tmp/anyenv.cache | ||
fi | ||
source /tmp/anyenv.cache | ||
if ! [ -f /tmp/anyenv.cache ]; then | ||
anyenv init - --no-rehash > /tmp/anyenv.cache | ||
zcompile /tmp/anyenv.cache | ||
fi | ||
source /tmp/anyenv.cache | ||
|
||
if ! [ -f /tmp/nodeenv.cache ]; then | ||
nodenv init - > /tmp/nodeenv.cache | ||
zcompile /tmp/nodeenv.cache | ||
fi | ||
source /tmp/nodeenv.cache | ||
if ! [ -f /tmp/nodeenv.cache ]; then | ||
nodenv init - > /tmp/nodeenv.cache | ||
zcompile /tmp/nodeenv.cache | ||
fi | ||
source /tmp/nodeenv.cache | ||
|
||
if ! [ -f /tmp/goenv.cache ]; then | ||
goenv init - > /tmp/goenv.cache | ||
zcompile /tmp/goenv.cache | ||
fi | ||
|
||
export GOROOT="$(go env GOROOT)" | ||
export GOBIN="${GOROOT}/bin" | ||
export PATH="$(go env GOBIN):${PATH}" | ||
source /tmp/goenv.cache | ||
fi | ||
|
||
exists "npm" && export PATH=${PATH}:$(npm bin):$(npm -g bin) | ||
exists "npm" && export PATH=${PATH}:$(npm prefix /bin):$(npm prefix -g /bin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters