feat(zsh): use antigen to bundle plugins
This commit is contained in:
parent
f425edc6a6
commit
73b7b3916a
@ -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
|
# Update Repo
|
||||||
# source $HOME/.dotfiles/configs/zsh/update-repo.zsh
|
# source $HOME/.dotfiles/configs/zsh/update-repo.zsh
|
||||||
|
|
||||||
|
|
||||||
# p10k
|
# p10k
|
||||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
@ -15,6 +14,19 @@ if [ -d "$HOME/.asdf" ] ; then
|
|||||||
. "$HOME/.asdf/asdf.sh"
|
. "$HOME/.asdf/asdf.sh"
|
||||||
fi
|
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
|
# Enable vim mode in zsh
|
||||||
bindkey -v
|
bindkey -v
|
||||||
|
|
||||||
@ -29,21 +41,9 @@ if [[ -z "$XDG_RUNTIME_DIR" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
# ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||||
# ZSH_TMUX_AUTOSTART=true
|
# ZSH_TMUX_AUTOSTART=true
|
||||||
ZSH_TMUX_AUTOCONNECT=false
|
# ZSH_TMUX_AUTOCONNECT=false
|
||||||
|
|
||||||
plugins=(
|
|
||||||
git
|
|
||||||
docker
|
|
||||||
asdf
|
|
||||||
tmux
|
|
||||||
sudo
|
|
||||||
nx-completion
|
|
||||||
you-should-use
|
|
||||||
zsh-autosuggestions
|
|
||||||
zsh-syntax-highlighting
|
|
||||||
)
|
|
||||||
|
|
||||||
eval `dircolors ~/.dircolors`
|
eval `dircolors ~/.dircolors`
|
||||||
|
|
||||||
|
@ -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"
|
set $screenvideo wf-recorder -g "$(slurp)" -f "$screenshot_dir/scrn-$(date +'%Y-%m-%d-%H-%M-%S').mp4"
|
||||||
|
|
||||||
# Default Programs
|
# Default Programs
|
||||||
set $term flatpak run org.wezfurlong.wezterm
|
set $term wezterm
|
||||||
set $explorer nautilus
|
set $explorer nautilus
|
||||||
set $mail org.gnome.Geary
|
set $mail org.gnome.Geary
|
||||||
set $browser google-chrome-beta --enable-features=UseOzonePlatform --ozone-platform=wayland
|
set $browser google-chrome-beta --enable-features=UseOzonePlatform --ozone-platform=wayland
|
||||||
|
1
configs/zsh/.gitignore
vendored
Normal file
1
configs/zsh/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
antigen.zsh
|
Loading…
Reference in New Issue
Block a user