Macメンテナンス は何をしますか?
PeterがMacのクリーンアップ、メンテナンス、またはパッケージ/リポジトリの更新を依頼したときに使用します。
実行
- Homebrew:
brew update && brew upgrade
~/Projects以下のリポジトリ:
for repo in ~/Projects/*/.git; do
dir=${repo:h}
git -C "$dir" status --short --branch
git -C "$dir" pull --ff-only
done
ダーティなリポジトリは、Peterが明示的に処理を依頼しない限りスキップします。スキップしたパスを報告してください。
- ゴミ箱を空にする:
osascript -e 'tell application "Finder" to empty trash'
- 簡潔なカウントで終了:
- brew: アップグレード済み / すでに最新
- リポジトリ: プル済み / スキップ / 失敗
- ゴミ箱: 空にした / 失敗