mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
18 lines
No EOL
367 B
Bash
18 lines
No EOL
367 B
Bash
# $DOTFILES/zsh/update.sh
|
|
|
|
# This file won't be sourced by zsh by default
|
|
# Use `source` to run this file for updating plugins
|
|
|
|
# Plugins #
|
|
# Auto `git pull` on $ZDOTDIR/plugins
|
|
for plugin in $ZDOTDIR/plugins/*; do
|
|
if [ -d "$plugin" ]; then
|
|
cd $plugin
|
|
git pull --quiet --no-edit
|
|
fi
|
|
done
|
|
|
|
if [ which brew > /dev/null ]; then
|
|
brew update
|
|
brew upgrade
|
|
fi |