-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
70 lines (50 loc) · 1.6 KB
/
zshrc
File metadata and controls
70 lines (50 loc) · 1.6 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
# shortcut to this dotfiles path is $ZSH
export ZSH=$HOME/dotfiles
# your project folder that we can `c [tab]` to
export PROJECTS=~/prj
export EDITOR=nvim
# source every .zsh file in this rep
for config_file ($ZSH/**/*.zsh) source $config_file
# use .localrc for SUPER SECRET CRAP that you don't
# want in your public, versioned repo.
if [[ -a ~/.localrc ]]
then
source ~/.localrc
fi
# initialize autocomplete here, otherwise functions won't be loaded
autoload -U compinit
compinit
# load every completion after autocomplete loads
for config_file ($ZSH/**/completion.sh) source $config_file
eval "$(rbenv init -)"
eval "$(direnv hook zsh)"
bindkey -e
bindkey '^[[1;9C' forward-word
bindkey '^[[1;9D' backward-word
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# Rustup
[ -f $HOME/.cargo/env ] && source $HOME/.cargo/env
eval "$(zoxide init zsh)"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
eval "$(starship init zsh)"
# add --use-on-cd if you want it to switch automatically
eval "$(fnm env)"
# bun completions
[ -s "/Users/marten/.bun/_bun" ] && source "/Users/marten/.bun/_bun"
# bun
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
# pnpm
export PNPM_HOME="/Users/marten/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
source /Users/marten/.config/op/plugins.sh
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init - zsh)"
# Added by GitButler installer
export PATH="$HOME/.local/bin:$PATH"
eval "$(but completions zsh)"