-
Notifications
You must be signed in to change notification settings - Fork 1
/
zshenv
42 lines (33 loc) · 1.01 KB
/
zshenv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#------------------------------------------------------------------------------#
# Environment variable #
#------------------------------------------------------------------------------#
export LANG=ja_JP.UTF-8
export EDITOR='nvim'
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.data}"
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
# zsh & zinit
export ZHOMEDIR=${XDG_CONFIG_HOME}/zsh
# go
export GO111MODULE=on
export GOPATH=$HOME/dev
export GOBIN=$GOPATH/bin
export GOENV=$GOPATH/env
export GOCACHE=$GOPATH/go-build
# GOROOTはgolang.org/dlで設定されたデフォルト値を変えられない
# そのため、defaultのまま。
#export GOROOT=$HOME/dev
# ghq
export GHQ_ROOT=$GOPATH/src
# rustup
. "$HOME/.cargo/env"
export PATH=~/Library/Python/3.7/bin:$PATH
path=(
/opt/homebrew/bin
$XDG_DATA_HOME/nvim/mason/bin
$HOME/.local/bin
$GOBIN
/usr/local/opt/libpq/bin
$path
)
# }}}