-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathzshrc
More file actions
107 lines (76 loc) · 2.33 KB
/
zshrc
File metadata and controls
107 lines (76 loc) · 2.33 KB
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
# OPENSPEC:START
# OpenSpec shell completions configuration
fpath=("/Users/niksun/.oh-my-zsh/custom/completions" $fpath)
autoload -Uz compinit
compinit
# OPENSPEC:END
if [[ $(uname) == "Darwin" ]]; then
ulimit -S -n 1024
case ":$PATH:" in
*":/opt/homebrew/bin:"*) ;;
*) eval "$(/opt/homebrew/bin/brew shellenv)" ;;
esac
alias tar="COPYFILE_DISABLE=1 tar"
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 kimi-cli tmux)
source $ZSH/oh-my-zsh.sh
export XDG_CONFIG_HOME=~/.config
export CURL_CA_BUNDLE=/etc/ssl/cert.pem
export GOPATH="$HOME/.go"
export GOPROXY=https://goproxy.cn,direct
export GO111MODULE=on
# 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"
alias enp="enpass-cli -vault=$(realpath ~)/Documents/Enpass/Vaults/primary -sort"
if [[ $(uname) != "Darwin" ]]; then
alias docker="podman"
fi
case ":$PATH:" in
*"$HOME/.jenv"*) ;;
*) eval "$(jenv init -)" ;;
esac
case ":$PATH:" in
*"fnm_multishells"*) ;;
*) eval "$(fnm env --use-on-cd --shell zsh)" ;;
esac
eval "$(uv generate-shell-completion zsh)"
eval "$(uvx --generate-shell-completion zsh)"
eval "$(zoxide init zsh)"
eval "$(starship init zsh)"
fastfetch
# pnpm
export PNPM_HOME="$HOME/.pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
# bun completions
[ -s "/Users/niksun/.bun/_bun" ] && source "/Users/niksun/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
case ":$PATH:" in
*":$BUN_INSTALL/bin:"*) ;;
*) export PATH="$BUN_INSTALL/bin:$PATH" ;;
esac
# Added by CatPaw
export PATH="/Users/niksun/.catpaw/bin:$PATH"
source ~/.moaextrc