-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshenv.tmpl
46 lines (36 loc) · 1009 Bytes
/
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
# default apps
export EDITOR="nvim"
export VISUAL="nvim"
# default folders
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
export XDG_CACHE_HOME="$HOME/.cache"
{{- if eq .chezmoi.os "linux" }}
export OPENER="xdg-open"
export GOPATH="/projects/go"
export GOMODCACHE="/projects/go/pkg/mod"
typeset -U path PATH
path=(~/.local/bin $GOPATH/bin $path)
export PATH
{{- end }}
{{- if eq .chezmoi.os "darwin" }}
export OPENER="open"
export GOPATH="${HOME}/Projects/go"
export HOMEBREW_INSTALL_FROM_API=1
typeset -U path PATH
path=($HOME/.local/bin /opt/homebrew/bin /usr/local/bin $GOPATH/bin $path)
export PATH
{{- end }}
# set the localization
export LC_ALL=en_US.UTF-8
# cleaning up the home folder
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
# colors!
export MANPAGER="nvim +Man!"
# kube-config
export KUBECONFIG=$HOME/.kube/main.yaml:$HOME/.kube/demo.yaml
{{- if eq .chezmoi.os "linux" }}
# uv
export UV_LINK_MODE="copy"
{{- end }}