-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshenv.tmpl
67 lines (50 loc) · 1.34 KB
/
dot_zshenv.tmpl
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
## Locale
export LANGUAGE="en_US.UTF-8"
export LANG="$LANGUAGE"
export LC_ALL="$LANGUAGE"
export LC_CTYPE="$LANGUAGE"
## Editor
EDITOR="$(
command -v -- emacs ||
command -v -- vim ||
command -v -- vi
)"
if test -n "${EDITOR}"; then
export EDITOR
fi
## Path
export XDG_CONFIG_HOME="${HOME}/.config"
export XDG_CACHE_HOME="${HOME}/.cache"
export XDG_DATA_HOME="${HOME}/.local/share"
export XDG_STATE_HOME="${HOME}/.local/state"
## zsh
ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
HISTFILE="${ZDOTDIR}/.zsh_history"
### enhancd
export ENHANCD_FILTER="fzf --reverse --prompt='Dir > '"
export ENHANCD_DIR="${XDG_DATA_HOME}/enhancd"
## Starship
export STARSHIP_CONFIG="${XDG_CONFIG_HOME}/starship/starship.toml"
## WezTerm
export WEZTERM_CONFIG_FILE="${XDG_CONFIG_HOME}/wezterm/wezterm.lua"
{{- if ne .chezmoi.os "darwin" }}
## Docker
export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker"
export PATH="$PATH:${DOCKER_CONFIG}/bin"
{{- end }}
## Go
export PATH="$PATH:/usr/local/go/bin"
export GOPATH="${XDG_DATA_HOME}/go"
export PATH="$PATH:${GOPATH}/bin"
## Rust
export RUSTUP_HOME="${XDG_DATA_HOME}/rustup"
export CARGO_HOME="${XDG_DATA_HOME}/cargo"
export PATH="$PATH:${CARGO_HOME}/bin"
{{ if eq .chezmoi.os "darwin" }}
## Java
/usr/libexec/java_home >/dev/null 2>&1
if test $? -eq 0; then
JAVA_HOME="$(/usr/libexec/java_home)"
export JAVA_HOME
fi
{{- end }}