-
Notifications
You must be signed in to change notification settings - Fork 4
/
.zshrc
88 lines (74 loc) · 4.25 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
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
# key bindings
bindkey "^[[A" history-search-backward
bindkey "^[[B" history-search-forward
# 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
# check https://wiki.zshell.dev/
typeset -Ag ZI
typeset -gx ZI[HOME_DIR]="${HOME}/.zi"
typeset -gx ZI[BIN_DIR]="${ZI[HOME_DIR]}/bin"
[ ! -d $ZI[BIN_DIR] ] && command mkdir -p "$ZI[BIN_DIR]"
[ ! -d $ZI[BIN_DIR]/.git ] && command git clone https://github.com/z-shell/zi.git "$ZI[BIN_DIR]"
source "${ZI[BIN_DIR]}/zi.zsh"
zi wait lucid light-mode for \
as'completion' zsh-users/zsh-completions \
pick'alias-tips.plugin.zsh' djui/alias-tips \
as'completion' pick'gradle-completion.plugin.zsh' gradle/gradle-completion \
as'program' from'gh-r' bpick'*x86_64-apple-darwin.tar.gz' atclone'./zoxide init --cmd=j zsh > init.zsh' src'init.zsh' atpull'%atclone' pick'zoxide/zoxide' ajeetdsouza/zoxide
# install and load ohmyposh theme
if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
set termguicolors
zi ice as"command" from"gh-r" mv'posh-* -> oh-my-posh' \
atclone"./oh-my-posh completion zsh > _oh_my_posh" atpull"%atclone" atload'eval "$(oh-my-posh init zsh --config $HOME/.zen.omp.toml)"'
zi light JanDeDobbeleer/oh-my-posh
fi
# # install and load starship theme÷
# zi ice as"command" from"gh-r" \
# atclone"./starship init zsh > init.zsh; ./starship completions zsh > _starship" \
# atpull"%atclone" src"init.zsh"
# zi light starship/starship
# install powerline10k
# zi ice depth'1' atload"[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh" nocd
# zi light romkatv/powerlevel10k
zi wait'3' lucid light-mode for \
OMZP::git \
OMZP::mvn \
OMZP::extract \
as'program' from'gh-r' mv'direnv* -> direnv' atclone'./direnv hook zsh > zhook.zsh' atpull'%atclone' pick'direnv' src'zhook.zsh' direnv/direnv
zi ice wait'3' lucid as'program' src'asdf.sh'
zi light asdf-vm/asdf
zi wait'10' lucid light-mode for \
as'program' from'gh-r' nektos/act \
as'program' from'gh-r' jesseduffield/lazygit \
as'program' from'gh-r' mv'tealdeer* -> tldr' dbrgn/tealdeer \
as'program' from'gh-r' mv'mkcert* -> mkcert' FiloSottile/mkcert \
as'program' from'gh-r' mv'hadolint* -> hadolint' hadolint/hadolint \
as'program' pick'$ZPFX/bin/git-*' make'PREFIX=$ZPFX' nocompile tj/git-extras \
as'program' from'gh-r' mv'yt-dlp* -> yt-dlp' bpick'yt-dlp_macos' yt-dlp/yt-dlp \
as'program' from'gh-r' mv'krew* -> krew' atpull'%atclone' kubernetes-sigs/krew \
as'program' from'gh-r' mv'kube-explorer* -> kube-explorer' cnrancher/kube-explorer \
as'program' from'gh-r' mv'cs* -> coursier' bpick'cs-*-apple-darwin.gz' coursier/coursier \
as'program' from'gh-r' mv'hostess* -> hostess' bpick'hostess_macos_amd64' cbednarski/hostess \
as'program' from'gh-r' atclone'./kondo --completions zsh > _kondo' atpull'%atclone' tbillington/kondo \
as'program' from'gh-r' bpick'*x86_64-apple-darwin.tar.gz' mv'dua-* -> dua' pick'dua/dua' Byron/dua-cli \
as'program' from'gh-r' atclone'ln -sfv completions/dog.zsh _dog' atpull'%atclone' pick'bin/dog' ogham/dog \
as'program' from'gh-r' mv'k3d* -> k3d' atclone'./k3d completion zsh > _k3d' atpull'%atclone' pick'k3d' k3d-io/k3d \
as'program' from'gh-r' mv'terraformer* -> terraformer' bpick'terraformer-all-darwin-amd64' GoogleCloudPlatform/terraformer \
as'program' from'gh-r' mv'kind* -> kind' atclone'./kind completion zsh > _kind' atpull'%atclone' pick'kind' kubernetes-sigs/kind \
as'program' from'gh-r' mv'argocd* -> argocd' atclone'./argocd completion zsh > _argocd' atpull'%atclone' pick'argocd' argoproj/argo-cd \
as'program' from'gh-r' mv'skaffold* -> skaffold' atclone'./skaffold completion zsh > _skaffold' atpull'%atclone' GoogleContainerTools/skaffold \
pick'git-open.plugin.zsh' paulirish/git-open \
z-shell/H-S-MW \
z-shell/F-Sy-H
# Load the shell dotfiles, and then some:
# * ~/.path can be used to extend `$PATH`.
# * ~/.extra can be used for other settings you don’t want to commit.
for file in $HOME/.dotfiles/.{extra,path,exports,aliases,functions,dockerfunctions,kubefunctions,source,cli-packages,zsh_options}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
unset file;
# autoload -Uz _zi
# (( ${+_comps} )) && _comps[zi]=_zi
autoload -Uz compinit && compinit
zi cdreplay -q