mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
chore(zinit): switch to newer for-syntax for zinit declarations
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
# direnv setup
|
||||
#
|
||||
|
||||
zinit ice wait lucid from'gh-r' as'program' mv'direnv* -> direnv' \
|
||||
zinit light-mode wait lucid from'gh-r' as'program' pick'direnv' \
|
||||
mv'direnv* -> direnv' \
|
||||
atclone'./direnv hook zsh > .zinitrc.zsh' atpull'%atclone' \
|
||||
pick'direnv' src='.zinitrc.zsh'
|
||||
zinit light direnv/direnv
|
||||
src='.zinitrc.zsh' \
|
||||
for @direnv/direnv
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
#
|
||||
|
||||
if command-exists docker; then
|
||||
zinit ice wait lucid from'gh-r' as'program' mv'ctop-* -> ctop'
|
||||
zinit light bcicen/ctop
|
||||
zinit light-mode wait lucid from'gh-r' as'program' mv'ctop-* -> ctop' \
|
||||
for @bcicen/ctop
|
||||
fi
|
||||
|
||||
docker_remove_exited() {
|
||||
|
||||
@@ -20,8 +20,8 @@ fi
|
||||
path_prepend "$HOME/.config/doom-emacs/bin"
|
||||
|
||||
# install emacs-sandbox.sh
|
||||
zinit ice wait lucid as'program' pick'emacs-sandbox.sh' from'gh'
|
||||
zinit light alphapapa/emacs-sandbox.sh
|
||||
zinit light-mode wait lucid as'program' pick'emacs-sandbox.sh' from'gh' \
|
||||
for @alphapapa/emacs-sandbox.sh
|
||||
|
||||
# Setup vterm if shell is within vterm inside Emacs.
|
||||
if [[ "$INSIDE_EMACS" = 'vterm' ]]; then
|
||||
|
||||
10
zsh/fzf.zsh
10
zsh/fzf.zsh
@@ -8,11 +8,11 @@ export FZF_TMUX=0
|
||||
export FZF_CTRL_T_OPTS="--preview='less {}'"
|
||||
|
||||
# Install fzf binary from latest GitHub Release.
|
||||
zinit ice wait lucid from'gh-r' as'program' pick'fzf'
|
||||
zinit light junegunn/fzf
|
||||
zinit light-mode wait lucid from'gh-r' as'program' pick'fzf' \
|
||||
for @junegunn/fzf
|
||||
|
||||
# Install fzf-tmux command and zsh plugins from default branch on GitHub.
|
||||
zinit ice wait lucid from'gh' as'program' pick'bin/fzf-tmux' \
|
||||
zinit light-mode wait lucid from'gh' as'program' pick'bin/fzf-tmux' \
|
||||
multisrc'shell/{completion,key-bindings}.zsh' \
|
||||
id-as'junegunn/fzf-extras'
|
||||
zinit light junegunn/fzf
|
||||
id-as'junegunn/fzf-extras' \
|
||||
for @junegunn/fzf
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
# ==============================================================================
|
||||
|
||||
# Create symlink for "g" called "gv", as I have "g" aliased to "git".
|
||||
zinit ice wait lucid as'program' pick'bin/g' from'gh' \
|
||||
atclone'cd bin && ln -s g gv' atpull'%atclone'
|
||||
zinit light stefanmaric/g
|
||||
zinit light-mode wait lucid as'program' pick'bin/g' from'gh' \
|
||||
atclone'cd bin && ln -s g gv' atpull'%atclone' \
|
||||
for @stefanmaric/g
|
||||
|
||||
# ==============================================================================
|
||||
# global golang packages
|
||||
|
||||
@@ -19,8 +19,8 @@ if command-exists kubectl; then
|
||||
switch "$@"
|
||||
}
|
||||
|
||||
zinit ice wait lucid as'program' from'gh-r'
|
||||
zinit light stackrox/kube-linter
|
||||
zinit light-mode wait lucid as'program' from'gh-r' \
|
||||
for @stackrox/kube-linter
|
||||
|
||||
if ! kubectl krew &> /dev/null; then
|
||||
krew-bin() {
|
||||
@@ -29,30 +29,30 @@ if command-exists kubectl; then
|
||||
-e 's/aarch64$/arm64/')"
|
||||
}
|
||||
|
||||
zinit ice wait lucid as'null' from'gh-r' bpick'krew.tar.gz' \
|
||||
atclone'KREW='"'$(krew-bin)'"' && ./$KREW install krew'
|
||||
zinit light kubernetes-sigs/krew
|
||||
zinit light-mode wait lucid as'null' from'gh-r' bpick'krew.tar.gz' \
|
||||
atclone'KREW='"'$(krew-bin)'"' && ./$KREW install krew' \
|
||||
for @kubernetes-sigs/krew
|
||||
|
||||
export KREW_ROOT="$HOME/.krew"
|
||||
path_append "${KREW_ROOT}/bin"
|
||||
fi
|
||||
|
||||
zinit ice wait lucid as'program' from'gh-r' mv'kind-* -> kind' \
|
||||
atclone'./kind completion zsh > _kind' atpull'%atclone'
|
||||
zinit light kubernetes-sigs/kind
|
||||
zinit light-mode wait lucid as'program' from'gh-r' mv'kind-* -> kind' \
|
||||
atclone'./kind completion zsh > _kind' atpull'%atclone' \
|
||||
for @kubernetes-sigs/kind
|
||||
|
||||
zinit ice wait lucid as'program' from'gh-r' \
|
||||
atclone'./flux completion zsh > _flux' atpull'%atclone'
|
||||
zinit light fluxcd/flux2
|
||||
zinit light-mode wait lucid as'program' from'gh-r' \
|
||||
atclone'./flux completion zsh > _flux' atpull'%atclone' \
|
||||
for @fluxcd/flux2
|
||||
|
||||
zinit ice wait lucid as'program' from'gh-r' \
|
||||
atclone'./kustomize completion zsh > _kustomize' atpull'%atclone'
|
||||
zinit light kubernetes-sigs/kustomize
|
||||
zinit light-mode wait lucid as'program' from'gh-r' \
|
||||
atclone'./kustomize completion zsh > _kustomize' atpull'%atclone' \
|
||||
for @kubernetes-sigs/kustomize
|
||||
|
||||
zinit ice wait lucid as'program' from'gh-r' pick'kubeseal'
|
||||
zinit light bitnami-labs/sealed-secrets
|
||||
zinit light-mode wait lucid as'program' from'gh-r' pick'kubeseal' \
|
||||
for @bitnami-labs/sealed-secrets
|
||||
|
||||
zinit ice wait lucid as'program' from'gh-r' mv'argocd-* -> argocd' \
|
||||
atclone'./argocd completion zsh > _argocd' atpull'%atclone'
|
||||
zinit light argoproj/argo-cd
|
||||
zinit light-mode wait lucid as'program' from'gh-r' mv'argocd-* -> argocd' \
|
||||
atclone'./argocd completion zsh > _argocd' atpull'%atclone' \
|
||||
for @argoproj/argo-cd
|
||||
fi
|
||||
|
||||
@@ -10,6 +10,6 @@ export TERM="xterm-256color"
|
||||
|
||||
path_append "/opt/tigervnc/bin"
|
||||
|
||||
zinit ice wait lucid as'program' from'gh-r' mv'shfmt* -> shfmt' \
|
||||
atclone'./shfmt completions zsh > _shfmt' atpull'%atclone'
|
||||
zinit light mvdan/sh
|
||||
zinit light-mode wait lucid as'program' from'gh-r' mv'shfmt* -> shfmt' \
|
||||
atclone'./shfmt completions zsh > _shfmt' atpull'%atclone' \
|
||||
for @mvdan/sh
|
||||
|
||||
@@ -16,9 +16,9 @@ elif [[ "$OSTYPE" == "linux"* ]]; then
|
||||
zinit_volta_bpick='*linux-openssl-1.1.tar.gz'
|
||||
fi
|
||||
|
||||
zinit ice wait lucid as'program' from'gh-r' bpick"$zinit_volta_bpick" \
|
||||
atclone'./volta completions zsh > _volta' atpull'%atclone'
|
||||
zinit light volta-cli/volta
|
||||
zinit light-mode wait lucid as'program' from'gh-r' bpick"$zinit_volta_bpick" \
|
||||
atclone'./volta completions zsh > _volta' atpull'%atclone' \
|
||||
for @volta-cli/volta
|
||||
|
||||
# ==============================================================================
|
||||
# aliases
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
# ==============================================================================
|
||||
|
||||
# install pyenv
|
||||
zinit ice wait lucid as'program' pick'bin/pyenv' from'gh' \
|
||||
zinit light-mode wait lucid as'program' pick'bin/pyenv' from'gh' \
|
||||
atclone'src/configure && make -C src; libexec/pyenv init - > .zinitrc.zsh' \
|
||||
atpull'%atclone' src'.zinitrc.zsh' nocompile'!'
|
||||
zinit light pyenv/pyenv
|
||||
atpull'%atclone' src'.zinitrc.zsh' nocompile'!' \
|
||||
for @pyenv/pyenv
|
||||
|
||||
zinit ice wait lucid as'program' pick'plugins/python-build/bin/python-build' \
|
||||
from'gh' id-as'pyenv/python-build'
|
||||
zinit light pyenv/pyenv
|
||||
zinit light-mode wait lucid as'program' pick'plugins/python-build/bin/python-build' \
|
||||
from'gh' id-as'pyenv/python-build' \
|
||||
for @pyenv/pyenv
|
||||
|
||||
# ==============================================================================
|
||||
# aliases
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
# Rclone
|
||||
#
|
||||
|
||||
zinit ice wait lucid as'program' from'gh-r' mv'**/rclone -> rclone' \
|
||||
atclone'./rclone genautocomplete zsh - > _rclone' atpull'%atclone'
|
||||
zinit light rclone/rclone
|
||||
zinit light-mode wait lucid as'program' from'gh-r' mv'**/rclone -> rclone' \
|
||||
atclone'./rclone genautocomplete zsh - > _rclone' atpull'%atclone' \
|
||||
for @rclone/rclone
|
||||
|
||||
14
zsh/ruby.zsh
14
zsh/ruby.zsh
@@ -7,18 +7,18 @@
|
||||
# ==============================================================================
|
||||
|
||||
# Install rbenv
|
||||
zinit ice wait lucid as'program' pick'bin/rbenv' from'gh' \
|
||||
zinit light-mode wait lucid as'program' pick'bin/rbenv' from'gh' \
|
||||
atclone'src/configure && make -C src; libexec/rbenv init - > .zinitrc.zsh' \
|
||||
atpull'%atclone' src'.zinitrc.zsh' nocompile'!'
|
||||
zinit light rbenv/rbenv
|
||||
atpull'%atclone' src'.zinitrc.zsh' nocompile'!' \
|
||||
for @rbenv/rbenv
|
||||
|
||||
# install ruby-build
|
||||
zinit ice wait lucid as'program' pick'bin/ruby-build' from'gh'
|
||||
zinit light rbenv/ruby-build
|
||||
zinit light-mode wait lucid as'program' pick'bin/ruby-build' from'gh' \
|
||||
for @rbenv/ruby-build
|
||||
|
||||
# install rbenv-each plugin
|
||||
zinit ice wait lucid as'program' pick'bin/rbenv-each' from'gh'
|
||||
zinit light rbenv/rbenv-each
|
||||
zinit light-mode wait lucid as'program' pick'bin/rbenv-each' from'gh' \
|
||||
for @rbenv/rbenv-each
|
||||
|
||||
# ==============================================================================
|
||||
# aliases
|
||||
|
||||
@@ -11,10 +11,10 @@ alias tmm="tmn -s main"
|
||||
|
||||
# Tmuxifier
|
||||
|
||||
zinit ice wait lucid as'program' pick'bin/tmuxifier' from'gh' \
|
||||
zinit light-mode wait lucid as'program' pick'bin/tmuxifier' from'gh' \
|
||||
atclone'./bin/tmuxifier init - > .zinitrc.zsh' atpull'%atclone' \
|
||||
src='.zinitrc.zsh'
|
||||
zinit light jimeh/tmuxifier
|
||||
src='.zinitrc.zsh' \
|
||||
for @jimeh/tmuxifier
|
||||
|
||||
alias m="tmuxifier"
|
||||
alias ms="tmuxifier load-session"
|
||||
|
||||
Reference in New Issue
Block a user