dev: automated commit - 2025-09-28 19:29:58

This commit is contained in:
Mariano Z. 2025-09-28 19:29:58 -03:00
parent c9829cac0f
commit efa863631d
7 changed files with 140 additions and 111 deletions

View file

@ -21,18 +21,18 @@ zap() {
# Update plugins sequentially (clean output)
for plugin in "${plugins[@]}"; do
plugin_name=${plugin##*/}
if [ ! -d "$PLUGIN_DIR/$plugin_name" ]; then
echo "Installing $plugin_name"
git clone --quiet "https://github.com/$plugin" "$PLUGIN_DIR/$plugin_name" --depth=1
else
old_hash=$(git -C "$PLUGIN_DIR/$plugin_name" rev-parse HEAD 2>/dev/null)
git -C "$PLUGIN_DIR/$plugin_name" fetch --quiet
git -C "$PLUGIN_DIR/$plugin_name" reset --hard origin/HEAD --quiet
new_hash=$(git -C "$PLUGIN_DIR/$plugin_name" rev-parse HEAD 2>/dev/null)
if [ "$old_hash" = "$new_hash" ]; then
echo "$plugin_name (up to date)"
else
@ -40,7 +40,7 @@ zap() {
fi
fi
done
for dir in "$PLUGIN_DIR"/*; do
if [ -d "$dir" ]; then
plugin_name=$(basename "$dir")
@ -50,7 +50,7 @@ zap() {
fi
fi
done
echo "Plugin update complete!"
}
@ -80,6 +80,6 @@ source "$ZDOTDIR/rose-pine.sh"
# Defer loading
zsh-defer source "$PLUGIN_DIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
for config in mise.zsh tmux.zsh functions.zsh alias.zsh keymap.zsh path.zsh pnpm.zsh; do
for config in tmux.zsh functions.zsh alias.zsh keymap.zsh path.zsh pnpm.zsh; do
zsh-defer source "$ZDOTDIR/$config"
done