-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
54 lines (40 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
ZGEN_RESET_ON_CHANGE=(${HOME}/.zshrc)
source "${HOME}/.zgenom/zgen.zsh"
if ! zgen saved; then
echo 'saving zgen conf'
zgen prezto
# prezto options
zgen prezto editor key-bindings 'emacs'
zgen prezto prompt theme 'sorin'
zgen prezto '*:*' color 'yes'
# prezto and modules
if [ "$(uname -s 2> /dev/null)" = "Darwin" ]; then
echo 'loading macos specific plugins'
zgen prezto osx
fi
zgen prezto git
zgen prezto command-not-found
zgen prezto syntax-highlighting
zgen prezto tmux
zgen prezto docker
zgen prezto history
zgen prezto directory
zgen prezto prompt
zgen prezto history-substring-search
zgen load zsh-users/zsh-autosuggestions
zgen load zsh-users/zsh-completions src
zgen load superbrothers/zsh-kubectl-prompt
zgen prezto completion
zgen save
fi
autoload -U colors; colors
if [ "$(uname -s 2> /dev/null)" = "Darwin" ]; then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
fi
autoload -U compinit
compinit -C
RPROMPT='%{$fg[blue]%}($ZSH_KUBECTL_PROMPT)%{$reset_color%}'
alias k=kubectl
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
[ -f ~/.zshenv_local ] && source ~/.zshenv_local
eval "$(zoxide init zsh)"