-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathzshrc
46 lines (37 loc) · 1.21 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
if [[ $(uname) == "Darwin" ]]; then
ulimit -S -n 1024
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
plugins=(zsh-autosuggestions zsh-syntax-highlighting zsh-completions zsh-vi-mode direnv)
source $ZSH/oh-my-zsh.sh
export XDG_CONFIG_HOME=~/.config
export CURL_CA_BUNDLE=/etc/ssl/cert.pem
export GOPATH="$HOME/.go"
# for rustup use rsproxy
export RUSTUP_DIST_SERVER="https://rsproxy.cn"
export RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"
# for proxy
function proxy {
PHOST=${PHOST:=127.0.0.1}
export https_proxy=http://$PHOST:7890
export http_proxy=http://$PHOST:7890
export all_proxy=socks5://$PHOST:7890
export no_proxy=localhost,127.0.0.1,$PHOST
}
alias unproxy="unset http_proxy; unset https_proxy; unset all_proxy;"
alias ls="eza"
alias aws="aws --endpoint-url https://s3plus.vip.sankuai.com"
alias mnpm="npm --registry=http://r.npm.sankuai.com \
--cache=$HOME/.cache/mnpm \
--disturl=http://npm.sankuai.com/mirrors/node \
--userconfig=$HOME/.mnpmrc"
if [[ $(uname) != "Darwin" ]]; then
alias docker="podman"
fi
eval "$(jenv init -)"
eval "$(zoxide init zsh)"
eval "$(fnm env --use-on-cd --shell zsh)"
eval "$(starship init zsh)"
fastfetch