-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
37 lines (28 loc) · 1.1 KB
/
Copy pathzshrc
File metadata and controls
37 lines (28 loc) · 1.1 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
# Environment variables and PATH (sources zsh/environment/*.zsh)
source $HOME/.zsh/environment.zsh
if [[ $OSTYPE == darwin* ]]; then
source $HOME/.zsh/osx.zsh
fi
source $HOME/.zsh/functions.zsh
# Lazy-load rbenv - only initializes when ruby/rbenv/gem/bundle is first used
if command -v rbenv >/dev/null 2>&1; then
_rbenv_init() {
unfunction ruby gem bundle rbenv 2>/dev/null
eval "$(command rbenv init -)"
}
ruby() { _rbenv_init; command ruby "$@" }
gem() { _rbenv_init; command gem "$@" }
bundle() { _rbenv_init; command bundle "$@" }
rbenv() { _rbenv_init; command rbenv "$@" }
fi
if [[ -f "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
source $HOME/.zsh/overrides.zsh
# all of these insist on being last, so they are.
source $HOME/.zsh/load_scripts.zsh
source $HOME/.zsh/aliases.zsh
# fnm (node version manager)
[[ -s "/opt/homebrew/bin/fnm" ]] && eval "$(fnm env --use-on-cd --version-file-strategy=recursive --corepack-enabled --resolve-engines --shell zsh)"
# bun completions
[ -s "$HOME/.bun/_bun" ] && source "$HOME/.bun/_bun"