feat(zsh): use antigen to bundle plugins

This commit is contained in:
max_richter 2023-04-15 20:03:21 +02:00
parent f425edc6a6
commit 73b7b3916a
3 changed files with 18 additions and 17 deletions

View File

@ -1,8 +1,7 @@
# Fig pre block. Keep at the top of this file.
[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh"
# Update Repo
# source $HOME/.dotfiles/configs/zsh/update-repo.zsh
# p10k
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
@ -15,6 +14,19 @@ if [ -d "$HOME/.asdf" ] ; then
. "$HOME/.asdf/asdf.sh"
fi
if [ -f "$HOME/.config/zsh/antigen.zsh" ] ; then
source $HOME/.config/zsh/antigen.zsh
antigen use oh-my-zsh
antigen bundle git
antigen bundle docker
antigen bundle asdf
antigen bundle jeffreytse/zsh-vi-mode
antigen theme romkatv/powerlevel10k
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-syntax-highlighting
antigen apply
fi
# Enable vim mode in zsh
bindkey -v
@ -29,21 +41,9 @@ if [[ -z "$XDG_RUNTIME_DIR" ]]; then
fi
ZSH_THEME="powerlevel10k/powerlevel10k"
# ZSH_THEME="powerlevel10k/powerlevel10k"
# ZSH_TMUX_AUTOSTART=true
ZSH_TMUX_AUTOCONNECT=false
plugins=(
git
docker
asdf
tmux
sudo
nx-completion
you-should-use
zsh-autosuggestions
zsh-syntax-highlighting
)
# ZSH_TMUX_AUTOCONNECT=false
eval `dircolors ~/.dircolors`

View File

@ -30,7 +30,7 @@ set $windowshot wl-copy < "$($grimshot --notify save window $screenshot_dir/scrn
set $screenvideo wf-recorder -g "$(slurp)" -f "$screenshot_dir/scrn-$(date +'%Y-%m-%d-%H-%M-%S').mp4"
# Default Programs
set $term flatpak run org.wezfurlong.wezterm
set $term wezterm
set $explorer nautilus
set $mail org.gnome.Geary
set $browser google-chrome-beta --enable-features=UseOzonePlatform --ozone-platform=wayland

1
configs/zsh/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
antigen.zsh