-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc
47 lines (34 loc) · 1.3 KB
/
dot_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
# Zplug complains if I have `git` aliased to `hub` here. :face_with_rolling_eyes:
unalias git 2>/dev/null
unalias ls 2>/dev/null
export ZPLUG_HOME="/usr/local/opt/zplug"
source $ZPLUG_HOME/init.zsh
zplug 'lib/history', from:oh-my-zsh
zplug 'plugins/chruby', from:oh-my-zsh
zplug 'plugins/git', from:oh-my-zsh
zplug 'plugins/github', from:oh-my-zsh
zplug 'zdharma/fast-syntax-highlighting'
zplug "mafredri/zsh-async", defer:0
zplug "sindresorhus/pure", use:pure.zsh, as:theme
zplug "~/.zsh", from:local, use:"*.zsh"
if ! zplug check --verbose; then
zplug install
fi
# Then, source plugins and add commands to $PATH
zplug load
# Vi-mode editing
bindkey -v
export KEYTIMEOUT=1
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/local/Cellar/tfenv/1.0.1/versions/0.11.14/terraform terraform
# Edit command line in $EDITOR
autoload -U edit-command-line
zle -N edit-command-line
bindkey -M vicmd v edit-command-line
function iterm2_print_user_vars() {
iterm2_set_user_var kubecontext "⎈ $(kube-get-context)"
iterm2_set_user_var rapture_whoami "☁ $(rapture_whoami)"
}
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
complete -o nospace -C /usr/local/Cellar/tfenv/2.0.0/versions/0.12.26/terraform terraform