Mac 유지보수
피터가 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
피터가 명시적으로 처리하도록 요청하지 않은 경우 더티 리포지토리는 건너뜁니다. 건너뛴 경로를 보고합니다.
- 휴지통 비우기:
osascript -e 'tell application "Finder" to empty trash'
- 간결한 개수로 마무리:
- brew: 업그레이드됨 / 이미 최신
- 리포지토리: 가져옴 / 건너뜀 / 실패
- 휴지통: 비움 / 실패