Skip to content
Commits on Jan 28, 2016
  1. @croaky

    Improve readability of permissions code

    croaky committed
    * Better reveal intent with `HOMEBREW_PREFIX` variable.
    * Do less work by referencing `$USER` instead of `whoami`.
    
    #444
    
    The $USER environment variable is not guaranteed to exist,
    but $LOGNAME is defined by POSIX
    (Environment Variables, section 8.3 Other Environment Variables).
    
    http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08_03
    http://unix.stackexchange.com/questions/76354/who-sets-user-and-username-environment-variables
Commits on Jan 26, 2016
  1. @croaky

    Don't link OpenSSL

    croaky committed
    From @mikemcquaid:
    
    > On 10.11 the OpenSSL headers are removed but library remains. Given
    > Clang's default paths this means things will use the Homebrew headers
    > but link against the system libraries. At best, it's insecure. At
    > worst, it'll cause random, hard-to-debug runtime failures.
    
    https://github.com/thoughtbot/laptop/pull/403/files#r41858641
    #401 (comment)
  2. @croaky

    Revert "Clean up old Homebrew formulas after run"

    Dan Croak and Gabe Berke-Williams committed with croaky
    This reverts commit ef7408d.
    
    * `brew cleanup` removes Postgres.
    * Migrating data in Postgres from old to new versions relies on
      the previous version of Postgres to run `pg_upgrade`.
    * Laptop shouldn't lose users' Postgres data.
    * Those who don't mind starting their new Postgres databases
      from scratch can `brew cleanup` in `~/.laptop.local`.
  3. @croaky

    Document how to run `rcup` in customizations

    Dan Croak and Gabe Berke-Williams committed with croaky
    * thoughtbot/laptop doesn't explicitly depend on thoughtbot/dotfiles.
    * So, we don't think it needs to be in the script.
    * Show it as another example of customizations for those who might be
      interested in updating their machine and dotfiles in one `sh mac`.
    
    #408
Commits on Jan 17, 2016
  1. @pra85

    Update license year to 2016

    pra85 committed
Commits on Jan 16, 2016
  1. @croaky

    chown -R `whoami`:admin /usr/local if necessary

    Dan Croak and Gabe Berke-Williams committed with croaky
    We link to this in the docs:
    
    https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/El_Capitan_and_Homebrew.md
    
    We can safely automate this to provide a better experience.
Commits on Jan 11, 2016
  1. @croaky

    Check for dead symlinks, relink valid formulae

    croaky committed
    Use the [`--repair`] flag to check for dead symlinks
    and relink all valid formulae across taps.
    
    [`--repair`]: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/brew-tap.md
  2. @croaky

    Group related lines together by printed headers

    croaky committed
    Sections:
    
    * "Installing Homebrew packages ..."
    * "Restarting services ..."
    * "Relinking OpenSSL ..."
    * "Configuring Ruby ..."
    * "Running your customizations from ~/.laptop.local ..."
    * "Cleaning up old Homebrew formulas ..."
    
    Related:
    
    * To make that work in the desired way,
      print less noise in the custom functions.
    * We don't need parity as customization in README.
    * Match documentation to sections, move OpenSSL to Unix section.
    * Move libyaml to after OpenSSL, before Ruby.
Commits on Jan 10, 2016
  1. @AlJohri @croaky

    Fix brew_expand_alias for non-standard packages

    AlJohri committed with croaky
    For example:
    
    ```
    brew info brew-cask 2>/dev/null | head -1 | awk '{gsub(/:/, ""); print $1}'
    caskroom/cask/brew-cask
    
    brew info brew-cask 2>/dev/null | head -1 | awk '{gsub(/.*\//, ""); gsub(/:/, ""); print $1}'
    brew-cask
    ```
    
    `brew list -1` only has the shorter name listed
    so it will try to re-install packages that are already installed.
  2. @croaky

    Install Parity

    croaky committed
    * The Parity Homebrew [package] installs Heroku Toolbelt, Git, Postgres
      but it seems nice for documentation purposes to
      keep the Homebrew packages installed for the other dependencies.
    * Tap the Homebrew formula first, so it updates with `brew update`.
    
    [package]: https://github.com/thoughtbot/homebrew-formulae/blob/master/Formula/parity.rb
  3. @croaky

    Clean up old Homebrew formulas after run

    croaky committed
    This can save significant disk space.
    Upon running this, I regularly see close to 1GB of space freed up.
  4. @croaky

    Migrate to built-in Homebrew-Cask

    croaky committed
    > Homebrew-Cask will now be kept up to date together with Homebrew
    
    > If you haven’t yet,
    > run `brew uninstall --force brew-cask; brew update`
    > to switch to the new system.
    
    caskroom/homebrew-cask@e83c009
    
    > To start using Homebrew-Cask, you just need Homebrew installed.
    
    caskroom/homebrew-cask@0d290b1
Commits on Jan 9, 2016
  1. @croaky

    Match rbenv init line to thoughtbot/dotfiles

    croaky committed
    `append_to_zshrc` checks whether the substring is in
    `~/.zshrc` or `~/.zshrc.local`.
    If it isn't, it appends it.
    
    https://github.com/thoughtbot/dotfiles/blob/master/zsh/configs/post/path.zsh
  2. @coisnepe @croaky

    Updated the link to Tmux

    coisnepe committed with croaky
    Was previously broken, now redirects to the current address
  3. @croaky
Commits on Jan 8, 2016
  1. @croaky
Commits on Oct 2, 2015
  1. @geoffharcourt

    Fix wording regarding directories on OS X

    geoffharcourt committed
    @mike-burns pointed out that OS X does not have folders, it has
    directories.
  2. @geoffharcourt

    Updates for OSX El Capitan

    geoffharcourt committed
    * Update supported versions list
    * Update Debugging section of README
    
    While updating to El Capitan, some users had problems installing or
    updating Homebrew due to El Capitan's [SIP](https://en.wikipedia.org/wiki/System_Integrity_Protection)
    security feature, which restricts access to `/usr`. Adding a link to
    Homebrew's own El Capitan troubleshooting documentation so that users
    who do have trouble will be able to see Homebrew's recommendations for
    resolution.
Commits on Jul 28, 2015
  1. @croaky

    Link to thoughtbot/dotfiles in README

    s a n d a l z committed with croaky
Commits on Jul 27, 2015
  1. @xuebingli @croaky

    Update README to reference Hub

    xuebingli committed with croaky
    The script installs `hub` instead of `gh` as of
    commit 9fe038c.
Commits on May 30, 2015
  1. @croaky

    Install Zsh via Homebrew

    croaky committed
    This has the added advantages of:
    
    * Updating Zsh by re-running the Laptop script.
    * Some Zsh tab completions will be automatically added to `$fpath`.
Commits on May 28, 2015
  1. @bb @croaky

    Fix rbenv init argument order

    bb committed with croaky
    The no-rehash parameter should go in front of the shell, not behind.
    The previous order was resulting in
    "basename: illegal option -- -"
    errors for me when using rbenv shell.
Commits on Apr 8, 2015
  1. @croaky

    Add code of conduct

    croaky committed
Commits on Mar 7, 2015
  1. @croaky

    Rework thoughtbot section of README

    croaky committed
    * Update logo to use new HTTPS version.
    * Change header from "Credits" to "About thoughtbot".
    * Move "thank you" to contributors section.
    * Make "About thoughtbot" the last thing in the README,
      with the copyrights grouped closer to the LICENSE information.
    * Link to LICENSE.
    * Make the community link more obvious that we have other projects.
    * Finish with a CTA to hire us.
    * Include `utm_source` codes to improve tracking.
Commits on Feb 20, 2015
  1. @pbrisbin

    Default $skip_new_line to 0

    pbrisbin committed
    In Bash, `[ "" -eq 1 ]` causes:
    
      [: : integer expression expected
    
    Resolves #377
Commits on Feb 15, 2015
  1. @croaky

    Update copyright to 2015

    croaky committed
  2. @seanpdoyle @croaky

    Revert `gh` to `hub`

    seanpdoyle committed with croaky
    `hub`, like `gh`, is now powered by the Go programming language.
    
    https://github.com/github/hub#2x
    
    Since `gh` is a GitHub CLI,
    why not use the CLI created by GitHub themselves?
    
    Additionally, `hub` handles `$ git clone thoughtbot/laptop`
    out of the box.
    
    `hub` 2.2.0 is the first stable release using Go:
    
    https://github.com/github/hub/releases/tag/v2.2.0
    
    It has been bottled in Homebrew:
    
    Homebrew/homebrew@1ad37e4
  3. @croaky

    Add link to wiki from README for customizations

    Richard Moorhead committed with croaky
Commits on Feb 3, 2015
  1. @reshleman

    Correct typo in README

    reshleman committed
    The sample `.laptop.local` incorrectly referred to
    `gem_install_or_upgrade` instead of `gem_install_or_update`.
Commits on Jan 18, 2015
  1. @croaky

    Fix rbenv idempotence

    croaky committed
    The `if` statement causes
    rbenv to only be installed,
    never upgraded.
    
    Now that we have `brew_install_or_upgrade`,
    we can eliminate the `if` statement.
Commits on Jan 16, 2015
  1. @croaky
  2. @AlJohri @croaky

    Add brew_tap function

    AlJohri committed with croaky
    This prevents the ugly "Warning" messages
    which Homebrew outputs by default
    when tapping something that is already tapped.
    
    Sourcing this script in my personal set up,
    I use it as thus:
    
    brew_tap 'homebrew/dupes'
    brew_tap 'homebrew/versions'
    brew_tap 'homebrew/boneyard'
    brew_tap 'homebrew/science'
    brew_tap 'homebrew/php'
    brew_tap 'caskroom/cask'
    brew_tap 'caskroom/versions'
    brew_tap 'caskroom/fonts'
    brew_tap 'thoughtbot/formulae'
Commits on Jan 12, 2015
  1. @croaky

    Remove NVM, simplify to `brew install node`

    croaky committed
    From @derekprior:
    
    > I never used NVM. I just kept my homebrew installed version pinned to
    > the version we were using. As a company this is probably totally fine
    > because we don't jump back and forth between node projects like we do
    > with Ruby projects. Also, there is no "system" node to worry about.
    
    #341 (comment)
  2. @croaky

    Restart Redis

    croaky committed
Commits on Dec 29, 2014
  1. @pbrisbin

    Setup travis build to run shellcheck

    pbrisbin committed
    Disable false-positives via shellcheck declarations:
    
    - L10: We're passing a format string as argument
    - L44, etc: We want the expressions to be appended literally
Something went wrong with that request. Please try again.