-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot-zshrc
55 lines (40 loc) · 1.81 KB
/
dot-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
49
50
51
52
53
## alias
alias ls="eza "
alias s="kitten ssh "
alias ls="eza "
alias vim="nvim "
alias cat="bat "
alias tree="eza --tree"
alias clion="open /Applications/CLion.app"
## proxy
export https_proxy=http://127.0.0.1:21882 http_proxy=http://127.0.0.1:21882 all_proxy=socks5://127.0.0.1:21882
## fzf
# [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
## ENV VARIBLES
eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH="/Users/hyluo/Library/Python/3.9/bin:$PATH"
export PATH="/Users/hyluo/.local/bin:$PATH"
export PATH="/opt/homebrew/bin:$PATH"
# export JAVA_HOME="/opt/homebrew/opt/openjdk/libexec/openjdk.jdk/Contents/Home/"
export CPATH="/opt/homebrew/include/"
export LIBRARY_PATH="/opt/homebrew/lib"
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
# man with bat
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
export HOMEBREW_PIP_INDEX_URL="https://pypi.tuna.tsinghua.edu.cn/simple"
export CLION_VM_OPTIONS="/Users/hyluo/Developer/Builds/jetbra/vmoptions/clion.vmoptions"
export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/usr/local/lib/
source "$HOME/.cargo/env"
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
if [[ $(ps -p $PPID -o comm=) != "fish" && -z "$ZSH_EXECUTION_STRING" ]]; then
[[ -o login ]] && LOGIN_OPTION='--login' || LOGIN_OPTION=''
exec fish $LOGIN_OPTION
fi