-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshenv
136 lines (116 loc) · 3.95 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
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# ------------------------------
# General Settings
# ------------------------------
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export TZ=Asia/Tokyo
export EDITOR=hx
export VISUAL=hx
export PAGER=less
export SHELL=zsh
export XDG_CONFIG_HOME=${HOME}/.config
export XDG_CACHE_HOME=${HOME}/.cache
export XDG_DATA_HOME=${HOME}/.local/share
setopt no_global_rcs
eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH=/usr/local/bin:/usr/local/sbin:${PATH}
export PATH=/usr/local/opt/openssl/bin:${PATH}
export PATH=/opt/homebrew/opt/curl/bin:${PATH}
export PATH=/opt/homebrew/opt/mysql-client/bin:${PATH}
export PATH=/opt/homebrew/opt/libpq/bin/:${PATH}
# GNU
export PATH=/opt/homebrew/opt/coreutils/libexec/gnubin:${PATH}
export PATH=/opt/homebrew/opt/findutils/libexec/gnubin:${PATH}
export PATH=/opt/homebrew/opt/binutils/bin:${PATH}
export PATH=/opt/homebrew/opt/gnu-sed/libexec/gnubin:${PATH}
export PATH=/opt/homebrew/opt/gnu-indent/libexec/gnubin:${PATH}
export PATH=/opt/homebrew/opt/gnu-tar/libexec/gnubin:${PATH}
export PATH=/opt/homebrew/opt/gnu-which/libexec/gnubin:${PATH}
export PATH=/opt/homebrew/opt/grep/libexec/gnubin:${PATH}
export MANPATH=/opt/homebrew/opt/coreutils/libexec/gnuman:${MANPATH}
export MANPATH=/opt/homebrew/opt/findutils/libexec/gnuman:${MANPATH}
export MANPATH=/opt/homebrew/opt/binutils/share/man:${MANPATH}
export MANPATH=/opt/homebrew/opt/gnu-sed/libexec/gnuman:${MANPATH}
export MANPATH=/opt/homebrew/opt/gnu-indent/libexec/gnuman:${MANPATH}
export MANPATH=/opt/homebrew/opt/gnu-tar/libexec/gnuman:${MANPATH}
export MANPATH=/opt/homebrew/opt/gnu-which/libexec/gnuman:${MANPATH}
export MANPATH=/opt/homebrew/opt/grep/libexec/gnuman:${PATH}
export FPATH=/opt/homebrew/share/zsh/site-functions:${HOME}/.functions:${FPATH}
autoload -Uz compinit
compinit
# ------------------------------
# History Settings
# ------------------------------
export HISTFILE=${HOME}/.zhistory
export HISTSIZE=1000000
export SAVEHIST=1000000
export LISTMAX=100
# ------------------------------
# mise Settings
# ------------------------------
eval "$(mise activate zsh)"
# ------------------------------
# golang Settings
# ------------------------------
export GOPATH=${HOME}/go
export PATH=${GOPATH}/bin:${PATH}
# ------------------------------
# Java Settings
# ------------------------------
export JAVA_HOME=$(/usr/libexec/java_home)
# ------------------------------
# Python Settings
# ------------------------------
export PATH="/usr/bin/python3:$PATH"
source "$HOME/.rye/env"
# ------------------------------
# Ruby Settings
# ------------------------------
export PATH="/opt/homebrew/opt/ruby/bin:$PATH"
# ------------------------------
# krew Settings
# ------------------------------
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
# ------------------------------
# ------------------------------
# Android Settings
# ------------------------------
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/emulator
# ------------------------------
# ------------------------------
# Dart Settings
# ------------------------------
export PATH="$HOME/.pub-cache/bin:$PATH"
# ------------------------------
# fzf Settings
# ------------------------------
export FZF_DEFAULT_OPTS='
--reverse
--ansi
--no-info
--multi
--height 60%
--color fg:252,bg:233,hl:67,fg+:252,bg+:235,hl+:81
--color info:144,prompt:161,spinner:135,pointer:135,marker:118
'
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --glob "!{.git,node_modules}/*"'
eval "$(fzf --zsh)"
# ------------------------------
# scripts
# ------------------------------
export PATH=${HOME}/.bin:${PATH}
# ------------------------------
# Auto load
# ------------------------------
autoload -Uz add-zsh-hook
autoload fzf-history
zle -N fzf-history
# ------------------------------
# Custom local files
# ------------------------------
if [[ -f ${HOME}/.zshenv.local ]]; then
source ${HOME}/.zshenv.local
fi