-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathzshrc
85 lines (62 loc) · 1.72 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
73
74
75
76
77
78
79
80
81
82
83
84
85
# Include local config first
[ -s ~/.zshrc.local ] && source ~/.zshrc.local
# 1Password
[ -s ~/.config/op/plugins.sh ] && source ~/.config/op/plugins.sh
# homebrew
if type brew &> /dev/null; then
export PATH=/usr/local/sbin:/usr/local/bin:$PATH
# completions
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
# python
export PATH=/opt/homebrew/opt/[email protected]/libexec/bin:$PATH
export PATH=/Users/jeff/Library/Python/3.9/bin:$PATH
fi
# rbenv
if which rbenv > /dev/null; then
eval "$(rbenv init -)"
fi
# direnv
if which direnv > /dev/null; then
eval "$(direnv hook zsh)"
fi
# go
export GOPATH=$HOME/code/go
export PATH=$GOPATH/bin:$PATH
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
ZSH_THEME="dstufft"
DISABLE_AUTO_UPDATE="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
plugins=()
source $ZSH/oh-my-zsh.sh
# disable autocorrect
unsetopt correct_all
alias ll='ls -lh'
alias l='ls -lah'
alias bi='bundle install && bundle binstubs --all --path .bundle/bin'
export PAGER="less -R"
export EDITOR=vim
# ctrl+left/right
bindkey '5D' emacs-backward-word
bindkey '5C' emacs-forward-word
# history search up and down
bindkey '^[[A' history-beginning-search-backward
bindkey '^[[B' history-beginning-search-forward
# alias hub to git
if which hub > /dev/null; then
eval "$(hub alias -s)"
fi
# fzf options
export FZF_DEFAULT_OPTS="--history=$HOME/.fzf_history"
if which fzf > /dev/null; then
source <(fzf --zsh)
fi
# kubectl completion
if which kubectl > /dev/null; then
source <(kubectl completion zsh)
fi
# difftool
export DFT_TAB_WIDTH=2
export RIPGREP_CONFIG_PATH=$HOME/.ripgreprc