Skip to content

Commit

Permalink
replace zplug with antidote
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Steinke committed Jul 14, 2024
1 parent 26ba109 commit e7d5887
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 27 deletions.
1 change: 1 addition & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ bottles = [
"ansible",
"ansible-language-server",
"ansible-lint",
"antidote",
"autopep8",
"awscli",
"aws-cdk",
Expand Down
43 changes: 19 additions & 24 deletions zsh_config/zplugins
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
zplug "plugins/docker", from:oh-my-zsh
zplug "plugins/docker-compose", from:oh-my-zsh
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/golang", from:oh-my-zsh
zplug "plugins/gradle", from:oh-my-zsh
zplug "plugins/helm", from:oh-my-zsh
zplug "plugins/kubectl", from:oh-my-zsh
zplug "plugins/kubectx", from:oh-my-zsh
zplug "plugins/pyenv", from:oh-my-zsh
zplug "plugins/ripgrep", from:oh-my-zsh
zplug "plugins/zsh-interactive-cd", from:oh-my-zsh
# 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/docker
ohmyzsh/ohmyzsh path:plugins/docker-compose
ohmyzsh/ohmyzsh path:plugins/git
ohmyzsh/ohmyzsh path:plugins/golang
ohmyzsh/ohmyzsh path:plugins/gradle
ohmyzsh/ohmyzsh path:plugins/helm
ohmyzsh/ohmyzsh path:plugins/kubectl
ohmyzsh/ohmyzsh path:plugins/kubectx
ohmyzsh/ohmyzsh path:plugins/pyenv
ohmyzsh/ohmyzsh path:plugins/zsh-interactive-cd

zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-completions"
zplug "jeffreytse/zsh-vi-mode"
romkatv/powerlevel10k kind:fpath

zplug romkatv/powerlevel10k, as:theme, depth:1

# zplug check returns true if all packages are installed
# Therefore, when it returns false, run zplug install
if ! zplug check; then
zplug install
fi

# Then, source plugins and add commands to $PATH
zplug load
# popular fish-like plugins
mattmc3/zfunctions
zsh-users/zsh-autosuggestions
zdharma-continuum/fast-syntax-highlighting kind:defer
zsh-users/zsh-history-substring-search
6 changes: 3 additions & 3 deletions zsh_config/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ fi
WORDCHARS=${WORDCHARS/\/}

# Load Package Manager configurations
export ZPLUG_HOME=$(brew --prefix)/opt/zplug
source $ZPLUG_HOME/init.zsh
source $(brew --prefix)/opt/antidote/share/antidote/antidote.zsh
antidote load ${ZDOTDIR:-$HOME}/.zplugins

source ~/.zplugins
autoload -Uz promptinit && promptinit && prompt powerlevel10k

alias vim=nvim
alias diff=colordiff
Expand Down

0 comments on commit e7d5887

Please sign in to comment.