-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
54 lines (46 loc) · 953 Bytes
/
.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
# ZSH_THEME="robbyrussell"
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(
git
# other plugins
brew
tmux
# https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#oh-my-zsh
zsh-autosuggestions
docker
docker-compose
kubectl
nvm
gh
web-search
# https://github.com/nvbn/thefuck#installation
thefuck
)
# brew
eval "$(/opt/homebrew/bin/brew shellenv)"
# https://github.com/nvbn/thefuck#installation
eval $(thefuck --alias)
# nvim
alias vim="nvim"
function get_ip() {
curl ip.sb
}
# proxy
function proxy_on() {
get_ip
export http_proxy=http://127.0.0.1:1081
export https_proxy=$http_proxy
echo -e "hello, terminal proxy is [on] !!!"
get_ip
}
function proxy_off(){
get_ip
unset http_proxy https_proxy
echo -e "bye, terminal proxy is [off] !!!"
get_ip
}
# go
export PATH="/opt/homebrew/opt/[email protected]/bin:$PATH"
export GOPROXY=https://goproxy.cn
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin