-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
48 lines (38 loc) · 1.8 KB
/
zshrc
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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# begin
[[ -r ~/.zsh_private ]] && source ~/.zsh_private
[[ -r ~/.aliases.zsh ]] && source ~/.aliases.zsh
[[ -r ~/.funcs.zsh ]] && source ~/.funcs.zsh
[[ -r ~/.antigen.zsh ]] && source ~/.antigen.zsh
[[ -r ~/.git.zsh ]] && source ~/.git.zsh
[[ -f ~/.fzf.zsh ]] && source ~/.fzf.zsh
[[ -f ~/.fzf-git.sh ]] && source ~/.fzf-git.sh
[[ -f ~/.cht.sh ]] && chmod +x ~/.cht.sh
[[ -f ~/.ccls_load.sh ]] && chmod +x ~/.ccls_load.sh
[[ -f ~/.z.lua ]] && eval "$(lua ~/.z.lua --init zsh once enhanced)"
# use antigen to manage the zsh plugins
[[ -f ~/.antigen-load.zsh ]] && [[ -f ~/.antigen.zsh ]] && source ~/.antigen-load.zsh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
# export PATH="/usr/local/opt/openjdk/bin:$PATH"
# export JAVA_HOME=/usr/local/jdk-20.jdk/Contents/Home
export JAVA_HOME=/usr/local/jdk-19.0.2.jdk/Contents/Home
export JAVA_HOME_20=$JAVA_HOME
export PATH="$JAVA_HOME/bin:$PATH"
export PATH="$PATH:$(go env GOPATH)/bin"
# export CPPFLAGS="-I/usr/local/opt/openjdk/include"
export PATH="/usr/local/sbin:$PATH"
export COMSPEC=xxxxx
export MVN_CWD=./mvnw
export CLASS_PATH=".:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar"
# git autocomplete supplied by zsh
autoload -U compinit; compinit
eval "$(hub alias -s)"