Skip to content

Commit

Permalink
Use Brewfile
Browse files Browse the repository at this point in the history
The idea is from `brew bundle`. See
Homebrew/legacy-homebrew#30815.

Also rename `brews` command to `formulae`.
  • Loading branch information
yous committed Oct 29, 2014
1 parent 3ccbd99 commit af7f291
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 37 deletions.
26 changes: 26 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
update
upgrade

# Mac OS X
install reattach-to-user-namespace

# Tools
install git
install grep --default-names
install wget
install autojump --HEAD
install imagemagick
install zsh
install tmux

# Node.js
install node

# Keybase (Requires Node.js)
install keybase

# Vim
install lua
install vim --with-lua --with-tcl

cleanup
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Command option | Description
---------------|-----------------------------------------------
`link` | Install symbolic links
`brew` | Install Homebrew
`brews` | Install brews
`formulae` | Install Homebrew formulae using Brewfile
`npm` | Install global Node.js packages
`ntfs` | Install ntfs-3g to write to NTFS external disk
`rbenv` | Install rbenv
Expand Down Expand Up @@ -72,11 +72,11 @@ If you want to install [Homebrew](http://brew.sh),
./install.sh brew
```

Then install brews with:
Then install Homebrew formulae with:

``` sh
rvm use system # To compile Vim with Ruby support
./install.sh brews
./install.sh formulae
```

### Ruby
Expand Down
21 changes: 0 additions & 21 deletions brews

This file was deleted.

26 changes: 13 additions & 13 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ case "$1" in
brew)
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
;;
brews)
while read LINE; do
[[ -z "$LINE" || ${LINE:0:1} == '#' ]] && continue
brew install $LINE
done < brews
formulae)
while read COMMAND; do
[[ -z "$COMMAND" || ${COMMAND:0:1} == '#' ]] && continue
brew $COMMAND
done < Brewfile
echo 'Done.'
;;
npm)
Expand Down Expand Up @@ -147,13 +147,13 @@ case "$1" in
echo "usage: $(basename $0) <command>"
echo ''
echo 'Available commands:'
echo ' link Install symbolic links'
echo ' brew Install Homebrew'
echo ' brews Install brews'
echo ' npm Install global Node.js packages'
echo ' ntfs Install ntfs-3g to write to NTFS external disk'
echo ' rbenv Install rbenv'
echo ' rvm Install RVM'
echo ' vim Install Vim environments'
echo ' link Install symbolic links'
echo ' brew Install Homebrew'
echo ' formulae Install Homebrew formulae using Brewfile'
echo ' npm Install global Node.js packages'
echo ' ntfs Install ntfs-3g to write to NTFS external disk'
echo ' rbenv Install rbenv'
echo ' rvm Install RVM'
echo ' vim Install Vim environments'
;;
esac

0 comments on commit af7f291

Please sign in to comment.