-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
72 lines (55 loc) · 1.82 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
DOTFILES_PATH="$HOME/Projects/dotfiles"
# Add `~/bin` to the `$PATH`
export PATH="$HOME/bin:$DOTFILES_PATH/bin:$PATH"
# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{path,bash_prompt,exports,exports.local,aliases,functions,extra}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file"
done
# brew
eval "$(/opt/homebrew/bin/brew shellenv)"
# go
PATH=$PATH:$(go env GOPATH)/bin
# Bun
export BUN_INSTALL="/Users/yule/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# Bun completions
[ -s "/Users/yule/.bun/_bun" ] && source "/Users/yule/.bun/_bun"
# fnm
eval "$(fnm env --use-on-cd)"
# volta
# export VOLTA_HOME="$HOME/.volta"
# export PATH="$VOLTA_HOME/bin:$PATH"
# pnpm
# export PNPM_HOME="/Users/yule/Library/pnpm"
# export PATH="$PNPM_HOME:$PATH"
# pnpm end
# refs:https://github.com/microsoft/vscode-docs/issues/5221#issuecomment-1061081538
# bindkey -e
# export PNPM_HOME="/Users/yule/Library/pnpm"
# export PATH="$PNPM_HOME:$PATH"
# eval "$(pyenv init -)"
# ruby
if [ -d "/opt/homebrew/opt/ruby/bin" ]; then
export PATH=/opt/homebrew/opt/ruby/bin:$PATH
export PATH=$(gem environment gemdir)/bin:$PATH
fi
if command -v rbenv 1>/dev/null 2>&1; then
eval "$(rbenv init - zsh)"
fi
# python
# export PYENV_ROOT="$HOME/.pyenv"
# command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
# eval "$(pyenv init -)"
# GitHub Copilot CLI
# eval "$(gh copilot alias -- zsh)"
# exercism
[ -s "$(brew --prefix)/share/zsh/site-functions/_exercism" ] && source "$(brew --prefix)/share/zsh/site-functions/_exercism"
# deno
export PATH="/Users/yule/.deno/bin:$PATH"
# ni
export NI_DEFAULT_AGENT="pnpm" # default "prompt"
export NI_GLOBAL_AGENT="pnpm"
# Added by Windsurf
export PATH="/Users/yule/.codeium/windsurf/bin:$PATH"