-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
59 lines (52 loc) · 1.14 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
54
55
56
57
58
59
## p10k instant prompt
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
## ZSH Configuration
DISABLE_AUTO_UPDATE="true"
COMPLETION_WAITING_DOTS="true"
ZSH_AUTOSUGGEST_STRATEGY=(history)
## Oh-My-ZSH related things
# Load zsh plugins
plugins=(
aws
azure
docker
direnv
extract
fluxcd
fluxcd
gcloud
gh
git
golang
gpg-agent
helm
history
history-substring-search
istioctl
jira
kubectl
kubectx
man
opentofu
operator-sdk
terraform
tmux
you-should-use
zsh-autosuggestions
zsh-syntax-highlighting
)
# Set powerlevel10k as theme, needs to be done before sourcing oh-my-zsh
ZSH_THEME="powerlevel10k/powerlevel10k"
source $HOME/.oh-my-zsh/oh-my-zsh.sh
# Load zsh functions and aliases
fpath=(~/.config/zsh/functions $fpath)
autoload -U $fpath[1]/*(.:t)
for file in ~/.config/zsh/aliases/*; do source $file; done
# Souring
source <(fzf --zsh)
# Misc
export K9S_CONFIG_DIR=~/.config/k9s
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh