From 73b7b3916a25ef5180497478f0dab2c5e10417f4 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 15 Apr 2023 20:03:21 +0200 Subject: [PATCH] feat(zsh): use antigen to bundle plugins --- configs/.zshrc | 32 ++++++++++++++++---------------- configs/sway/config | 2 +- configs/zsh/.gitignore | 1 + 3 files changed, 18 insertions(+), 17 deletions(-) create mode 100644 configs/zsh/.gitignore diff --git a/configs/.zshrc b/configs/.zshrc index c142cb4..c9252f9 100644 --- a/configs/.zshrc +++ b/configs/.zshrc @@ -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` diff --git a/configs/sway/config b/configs/sway/config index ce40794..3a64eeb 100644 --- a/configs/sway/config +++ b/configs/sway/config @@ -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 diff --git a/configs/zsh/.gitignore b/configs/zsh/.gitignore new file mode 100644 index 0000000..441f22e --- /dev/null +++ b/configs/zsh/.gitignore @@ -0,0 +1 @@ +antigen.zsh