-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc
73 lines (56 loc) · 2.04 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
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
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=~/.local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/voronov2/.oh-my-zsh"
ZSH_THEME="robbyrussell"
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
zsh-kubectl-prompt
zsh-autosuggestions
sublime
)
source $ZSH/oh-my-zsh.sh
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# User configuration
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
export GOPATH=/Users/voronov2/go
export PATH=$GOPATH/bin:$PATH
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
export PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:${PATH}"
export PATH=/usr/local/share/python:$PATH
export HOMEBREW_NO_AUTO_UPDATE=1
export ANSIBLE_NOCOWS=1
source ~/.zsh_aliases
[[ /usr/local/bin/kubectl ]] && source <(kubectl completion zsh)
[[ /usr/local/bin/helm ]] && source <(helm completion zsh)
export PATH="/usr/local/opt/python@3.8/bin:$PATH"
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /usr/local/bin/terraform terraform
autoload -Uz compinit
compinit
source <(velero completion zsh)
#az cli autocomplete
source /usr/local/etc/bash_completion.d/az
complete -o nospace -C /usr/local/bin/vault vault
compdef kubecolor=kubectl
function right_prompt() {
local color="green"
if [[ "$ZSH_KUBECTL_USER" =~ "production" ]]; then
color=red
fi
echo "%{$fg[$color]%}($ZSH_KUBECTL_PROMPT)%{$reset_color%}"
}
export RPROMPT='$(right_prompt)'