-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc_template
148 lines (122 loc) · 4.61 KB
/
zshrc_template
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#ENVS
ENABLE_DOCKER_PROMPT=true
ANSIBLE_VERSION=$(ansible --version | head -n 1)
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Path to zsh customizations
ZSH_CUSTOM=$HOME/.oh-my-zsh-custom
# Source zaw
source "${HOME}/.zsh/zaw/zaw.zsh"
# Source autosuggestions
source "${HOME}/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh"
# Source Highlighting
source "${HOME}/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
#Powerlevel9k cutomizations
DEFAULT_FOREGROUND=159
DEFAULT_BACKGROUND=239
PROMPT_COLOR=172
DEFAULT_COLOR="clear"
POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR="%F{232}|%f"
POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR="%F{232}|%f"
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_RPROMPT_ON_NEWLINE=false
POWERLEVEL9K_STATUS_VERBOSE=true
POWERLEVEL9K_STATUS_CROSS=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_STATUS_VERBOSE=true
POWERLEVEL9K_STATUS_CROSS=true
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="%F{$PROMPT_COLOR}%f"
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%F{$PROMPT_COLOR}➜ %f"
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_MODE='awesome-fontconfig'
#POWERLEVEL9K_MODE='nerdfont-complete'
#POWERLEVEL9K_MODE="awesome-patched"
POWERLEVEL9K_VCS_GIT_GITHUB_ICON=""
POWERLEVEL9K_VCS_GIT_BITBUCKET_ICON=""
POWERLEVEL9K_VCS_GIT_GITLAB_ICON=""
POWERLEVEL9K_VCS_GIT_ICON=""
POWERLEVEL9K_VCS_CLEAN_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_VCS_CLEAN_FOREGROUND="010"
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND="011"
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND="011"
POWERLEVEL9K_DIR_HOME_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_DIR_HOME_FOREGROUND="158"
POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="158"
POWERLEVEL9K_DIR_WRITABLE_FORBIDDEN_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="158"
POWERLEVEL9K_DIR_ETC_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_DIR_ETC_FOREGROUND="158"
POWERLEVEL9K_DIR_NOT_WRITABLE_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_DIR_NOT_WRITABLE_FOREGROUND="158"
POWERLEVEL9K_ROOT_INDICATOR_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_ROOT_INDICATOR_FOREGROUND="red"
POWERLEVEL9K_STATUS_OK_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_STATUS_OK_FOREGROUND="green"
POWERLEVEL9K_STATUS_ERROR_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_STATUS_ERROR_FOREGROUND="red"
dockerhost(){
local host=$DOCKER_HOST
local color='%F{white}'
echo -n "%{$color%}🐳 $host%{%f%}"
}
ansible_prompt() {
local ver=$ANSIBLE_VERSION
local color='%F{white}'
echo -n "%{$color%}$ver%{%f%}"
}
POWERLEVEL9K_CUSTOM_DOCKERHOST="dockerhost"
POWERLEVEL9K_CUSTOM_ANSIBLE="ansible_prompt"
POWERLEVEL9K_KUBECONTEXT_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_KUBECONTEXT_FOREGROUND="$DEFAULT_FORGROUND"
POWERLEVEL9K_CUSTOM_DOCKERHOST_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_CUSTOM_ANSIBLE_BACKGROUND="$DEFAULT_BACKGROUND"
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(custom_dockerhost kubecontext custom_ansible newline dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(command_execution_time)
# Set name of the theme to load.
ZSH_THEME="powerlevel9k/powerlevel9k"
# aliases
alias zshconfig="emacs ~/.zshrc"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable bi-weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment to change how many often would you like to wait before auto-updates occur? (in days)
export UPDATE_ZSH_DAYS=30
# Uncomment to disable ZSH auto correction for commands (correct) and command arguments (correct_all)
# unsetopt correct
# unsetopt correct_all
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (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)
plugins=(
ansible
aws
brew
docker
docker-alm
docker-compose
git
iterm2
kubectl
pip
shell-tools
zaw
zsh-completions
zsh-syntax-highlighting
)
autoload -U compinit && compinit
sudo launchctl limit maxfiles 524288 524288
source $ZSH/oh-my-zsh.sh
setopt autocd autopushd
# Customize to your needs...