-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdot_zshrc
48 lines (34 loc) · 901 Bytes
/
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
#!/bin/zsh
#ZSH Autoload
autoload -Uz compinit promptinit
compinit
promptinit
eval "$(starship init zsh)"
# load antibody plugins
source <(antibody init)
antibody bundle < ~/.zsh_plugins.txt
# all of our zsh files
typeset -U config_files
config_files=(~/.zsh/*.zsh)
# load the path files
for file in ${config_files}; do
source "$file"
done
# define PATH
export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/local/go/bin:$HOME/bin:$HOME/.krew/bin:$HOME/.cargo/bin"
# load zsh completion files
fpath=(~/.zsh/completions $fpath)
source <(kubectl completion zsh)
alias k=kubectl
compdef __start_kubectl k
setopt inc_append_history share_history autocd autopushd pushdignoredups
zstyle ':completion::complete:*' gain-privileges 1
# History
SAVEHIST=100000
HISTFILE=~/.zsh_history
umask 022
#Start tmux
if [ -z "$TMUX" ]
then
tmux attach -t TMUX || tmux new -s TMUX
fi