Skip to content

remo5000/brew-add

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Why

Homebrew/brew#3933

Homebrew/brew#3716

git clone https://github.com/remo5000/brew-add.git
cp brew-add/brew-add.rb /usr/local/bin/

Why not use a shell script??

Knock yourself out:

brew() {
  case $1 in
    add)
      shift
      for formula in "$@"
      do
        echo "Adding $formula to Brewfile"
        if ! grep -q "\"$formula\"" ~/Brewfile; then
          echo "brew \"$formula\"" >> ~/Brewfile;
        fi
      done
      echo "Installing..."
      brew bundle install --file ~/Brewfile;
      ;;
    *)
      command brew "$@";;
  esac
}

About

this was not worth it

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages