106 lines
2.4 KiB
Bash
106 lines
2.4 KiB
Bash
typeset -gAH ZINIT;
|
|
ZINIT[HOME_DIR]=$HOME/.local/share/zsh/zinit
|
|
ZINIT[BIN_DIR]=$ZINIT[HOME_DIR]/zinit.git
|
|
ZINIT[OPTIMIZE_OUT_DISK_ACCESSES]=1
|
|
ZINIT[COMPLETIONS_DIR]=$ZINIT[HOME_DIR]/completions
|
|
ZINIT[SNIPPETS_DIR]=$ZINIT[HOME_DIR]/snippets
|
|
ZINIT[ZCOMPDUMP_PATH]=$ZINIT[HOME_DIR]/zcompdump
|
|
ZINIT[PLUGINS_DIR]=$ZINIT[HOME_DIR]/plugins
|
|
|
|
[ ! -d "${ZINIT[BIN_DIR]}" ] && mkdir -p "$(dirname "${ZINIT[BIN_DIR]}")"
|
|
[ ! -d "${ZINIT[BIN_DIR]}/.git" ] && git clone https://github.com/zdharma-continuum/zinit.git "${ZINIT[BIN_DIR]}"
|
|
source "${ZINIT[BIN_DIR]}/zinit.zsh"
|
|
|
|
function turbo() {
|
|
zinit ice wait lucid "${@}"
|
|
}
|
|
|
|
function zload() {
|
|
zinit load "${@}"
|
|
}
|
|
|
|
function zsnippet() {
|
|
zinit snippet "${@}"
|
|
}
|
|
|
|
# NOTE: prompt
|
|
zload romkatv/powerlevel10k
|
|
|
|
# NOTE: virtualenv wrapper
|
|
turbo
|
|
zsnippet https://raw.githubusercontent.com/python-virtualenvwrapper/virtualenvwrapper/refs/heads/main/virtualenvwrapper.sh
|
|
|
|
# NOTE: notify on long running commands
|
|
turbo
|
|
zload MichaelAquilina/zsh-auto-notify
|
|
AUTO_NOTIFY_IGNORE+=(
|
|
commit
|
|
elia
|
|
git
|
|
gunicorn
|
|
htop
|
|
kube
|
|
lazygit
|
|
less
|
|
lf
|
|
man
|
|
more
|
|
nano
|
|
nvim
|
|
ssh
|
|
tail
|
|
tig
|
|
top
|
|
vim
|
|
watch
|
|
xchroot
|
|
)
|
|
|
|
# NOTE: colorize help output
|
|
turbo
|
|
zload Freed-Wu/zsh-help
|
|
|
|
# NOTE: jq repl
|
|
turbo
|
|
zload reegnz/jq-zsh-plugin
|
|
|
|
# NOTE: yank to clipboard
|
|
turbo
|
|
zload zsh-vi-more/evil-registers
|
|
zstyle :zle:evil-registers:'[A-Za-z%#]' editor nvim
|
|
|
|
# NOTE: tralios prox
|
|
turbo as:"program" from:"gitlab.tralios.de" pick:"prox"
|
|
zload "software/tralios-prox"
|
|
turbo as:"completion" from:"gitlab.tralios.de" pick:"_prox"
|
|
zload "software/tralios-prox"
|
|
|
|
# NOTE: tralios kube
|
|
turbo as:"program" from:"gitlab.tralios.de" pick:"kube"
|
|
zload "software/tralios-kube"
|
|
turbo as:"completion" from:"gitlab.tralios.de" pick:"_kube"
|
|
zload "software/tralios-kube"
|
|
|
|
# NOTE: fzf bindings and completions
|
|
turbo multisrc"shell/{completion,key-bindings}.zsh" \
|
|
id-as"junegunn/fzf_completions" pick"/dev/null"
|
|
zload junegunn/fzf
|
|
|
|
# NOTE: fzf completion menu
|
|
turbo
|
|
zload Aloxaf/fzf-tab
|
|
|
|
# NOTE: autosuggest
|
|
turbo atload:"_zsh_autosuggest_start"
|
|
zload /usr/share/zsh/plugins/zsh-autosuggestions
|
|
export ZSH_AUTOSUGGEST_USE_ASYNC=1
|
|
export ZSH_AUTOSUGGEST_MANUAL_REBIND=1
|
|
|
|
# NOTE: syntax highlighting
|
|
turbo atinit:"zicompinit; zicdreplay;"
|
|
zload /usr/share/zsh/plugins/zsh-syntax-highlighting
|
|
|
|
for f in zload zsnippet turbo; do
|
|
unset -f "$f"
|
|
done
|