Last active
          March 25, 2016 12:27 
        
      - 
      
- 
        Save voldmar/a861e7c51b7e77ab9233 to your computer and use it in GitHub Desktop. 
    Brew command for total updating all your installed packages including casks
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env zsh | |
| # Put it to /usr/local/bin/brew-total and use as `brew total` | |
| brew update && brew upgrade --all && brew cleanup | |
| brew cask list | xargs brew cask install && brew cask cleanup | |
| caskroom=/opt/homebrew-cask/Caskroom | |
| for cask in $caskroom/* | |
| do | |
| candidates=($cask/*(om[2,$])) | |
| [[ -z $candidates ]] || rm -rf $candidates | |
| done | |
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment