Skip to content

Commit

Permalink
Fix brew cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lainiwa committed Mar 15, 2022
1 parent 85dce04 commit 338e720
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions scripts/my
Original file line number Diff line number Diff line change
Expand Up @@ -463,14 +463,17 @@ EOF
if command -v guix >/dev/null; then
guix gc --delete-generations=1m
fi
# Cleanup unused linuxbrew packages
# # Cleanup unused linuxbrew packages
# if command -v brew >/dev/null; then
# (
# cd /tmp
# brew bundle dump
# brew bundle --force cleanup
# mv Brewfile Brewfile.used
# )
# fi
if command -v brew >/dev/null; then
(
cd /tmp
brew bundle dump
brew bundle --force cleanup
mv Brewfile Brewfile.used
)
brew cleanup --prune=1 -s
fi
# Clean sublime text 3 backups
if [[ -d ~/.config/sublime-text-3/Backup ]]; then
Expand Down

0 comments on commit 338e720

Please sign in to comment.