-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
53 lines (36 loc) · 1.21 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
# shortcut to this dotfiles path is $ZSH
export ZSH=$HOME/dotfiles
# your project folder that we can `c [tab]` to
export PROJECTS=~/prj
# 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
export PATH=/anaconda2/bin:$PATH
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"