-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzshrc
More file actions
63 lines (45 loc) · 1.36 KB
/
zshrc
File metadata and controls
63 lines (45 loc) · 1.36 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
# Init Homebrew
eval $(/opt/homebrew/bin/brew shellenv)
# Init starship
eval "$(starship init zsh)"
# Some local binaries
export PATH="$HOME/.bin:$PATH"
export PATH="$HOME/bin:$HOME/.bin:$PATH"
# Homebrew binaries
export PATH="/usr/local/bin:$PATH"
export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"
eval "$(rbenv init - zsh)"
# Postgresql
export PATH="/opt/homebrew/opt/postgresql@16/bin:$PATH"
# Set Node version
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
# Setup you choice of editor
export VISUAL=nvim
export EDITOR=$VISUAL
# Load prompt theme, except for Warp
if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
source $(brew --prefix)/opt/spaceship/spaceship.zsh
SPACESHIP_PROMPT_ASYNC=FALSE
fi
# Load general zsh config
[[ -f ~/.zsh.config ]] && source ~/.zsh.config
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
# Load aliases
[[ -f ~/.aliases ]] && source ~/.aliases
# Load functions
source ~/.zsh-functions/bbc-proxies.zsh
source ~/.zsh-functions/history.zsh
source ~/.zsh-functions/count.zsh
source ~/.zsh-functions/highlight.zsh
fpath=(/usr/local/share/zsh-completions $fpath)
source "$HOME/.cargo/env"
# bun completions
[ -s "/Users/david/.bun/_bun" ] && source "/Users/david/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"