feat(zsh): switch from antigen to antidote
This commit is contained in:
parent
875ee44e7c
commit
5de5edca67
|
@ -17,6 +17,7 @@ zsh/*
|
|||
!zsh/.zshrc
|
||||
!zsh/.zshenv
|
||||
!zsh/.zprofile
|
||||
!zsh/.zsh_plugins.txt
|
||||
!zsh/scripts.zsh
|
||||
!zsh/aliases.zsh
|
||||
!zsh/completions/.keep
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
# set up Zsh completions with plugins
|
||||
# mattmc3/ez-compinit
|
||||
zsh-users/zsh-completions kind:fpath path:src
|
||||
|
||||
# frameworks like oh-my-zsh are supported
|
||||
getantidote/use-omz # handle OMZ dependencies
|
||||
ohmyzsh/ohmyzsh path:lib # load OMZ's library
|
||||
ohmyzsh/ohmyzsh path:plugins/git
|
||||
|
||||
# theme
|
||||
romkatv/powerlevel10k
|
||||
|
||||
# popular fish-like plugins
|
||||
zsh-users/zsh-autosuggestions
|
||||
|
||||
# nvm
|
||||
lukechilds/zsh-nvm
|
25
zsh/.zshrc
25
zsh/.zshrc
|
@ -9,28 +9,13 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
|
|||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
# pre plugin load
|
||||
## pre plugin load
|
||||
# nvm
|
||||
export NVM_COMPLETION=true
|
||||
|
||||
# load antigen
|
||||
typeset -a ANTIGEN_CHECK_FILES=(${ZDOTDIR:-~}/.zshrc ${ZDOTDIR:-~}/antigen.zsh)
|
||||
source $ZDOTDIR/antigen.zsh
|
||||
|
||||
# oh-my-zsh library and git plugin
|
||||
antigen use oh-my-zsh
|
||||
antigen bundle git
|
||||
|
||||
# zsh users plugin
|
||||
antigen bundle zsh-users/zsh-autosuggestions
|
||||
|
||||
# other
|
||||
antigen bundle lukechilds/zsh-nvm
|
||||
|
||||
# theme
|
||||
antigen theme romkatv/powerlevel10k
|
||||
|
||||
# apply plugin load
|
||||
antigen apply
|
||||
# source antidote
|
||||
source $ZDOTDIR/.antidote/antidote.zsh
|
||||
antidote load
|
||||
|
||||
unsetopt autocd
|
||||
|
||||
|
|
Loading…
Reference in New Issue