github twitter email rss
Homebrew, caskroom
0001 Jun 1
One minute read

Homebrew, caskroom

Homebrew

https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md

Grep formulas

grep -rli quicklook $(brew --repository)/Library/Taps/caskroom/homebrew-cask/Casks/

Contributing caskroom

https://github.com/caskroom/homebrew-cask/blob/master/CONTRIBUTING.md#adding-a-cask
https://github.com/caskroom/homebrew-cask/blob/master/CONTRIBUTING.md#testing-your-new-cask

brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup

Use ghi to search for pull requests, install it gem install ghi use it:

ghi list caskroom/homebrew-cask

Use hum to send pull requst, install hub ‘brew install hub’ use it:

git pull-request -m "Implemented feature X" -b defunkt:master -h mislav:feature

caskroom/homebrew-versions

cd "$(brew --repository)"/Library/Taps/caskroom/homebrew-cask
git checkout -b new-contrib
git add .
git commit -m ""
git push diimdeep new-contrib

brew cask edit caskname
brew cask audit --download caskname

Example of creating cask

brew cask create nulloy
brew cask audit nulloy --download
cd "$(brew --repository)"/Library/Taps/caskroom/homebrew-cask
git checkout -b nulloy-cask
git add Casks/nulloy.rb 
git commit -m "Add Nulloy v0.8"
git remote add diimdeep "https://github.com/diimdeep/homebrew-cask"
git push diimdeep nulloy-cask
git fetch --unshallow origin
hub pull-request

Clean up

cd "$(brew --repository)"/Library/Taps/caskroom/homebrew-cask
git checkout master

Back to posts


comments powered by Disqus