Commits on Jan 16, 2016
  1. chown -R `whoami`:admin /usr/local if necessary

    Dan Croak and Gabe Berke-Williams committed with croaky Jan 16, 2016
    We link to this in the docs:
    We can safely automate this to provide a better experience.
Commits on Jan 11, 2016
  1. Check for dead symlinks, relink valid formulae

    croaky committed Jan 10, 2016
    Use the [`--repair`] flag to check for dead symlinks
    and relink all valid formulae across taps.
  2. Group related lines together by printed headers

    croaky committed Jan 11, 2016
    * "Installing Homebrew packages ..."
    * "Restarting services ..."
    * "Relinking OpenSSL ..."
    * "Configuring Ruby ..."
    * "Running your customizations from ~/.laptop.local ..."
    * "Cleaning up old Homebrew formulas ..."
    * 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. Fix brew_expand_alias for non-standard packages

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

    croaky committed Jan 10, 2016
    * 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`.
  3. Clean up old Homebrew formulas after run

    croaky committed Jan 10, 2016
    This can save significant disk space.
    Upon running this, I regularly see close to 1GB of space freed up.
  4. Migrate to built-in Homebrew-Cask

    croaky committed Jan 10, 2016
    > 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.
    > To start using Homebrew-Cask, you just need Homebrew installed.
Commits on Jan 9, 2016
  1. Match rbenv init line to thoughtbot/dotfiles

    croaky committed Jan 7, 2016
    `append_to_zshrc` checks whether the substring is in
    `~/.zshrc` or `~/.zshrc.local`.
    If it isn't, it appends it.
  2. Updated the link to Tmux

    coisnepe committed with croaky Dec 1, 2015
    Was previously broken, now redirects to the current address
Commits on Jan 8, 2016
Commits on Oct 2, 2015
  1. Fix wording regarding directories on OS X

    geoffharcourt committed Oct 2, 2015
    @mike-burns pointed out that OS X does not have folders, it has
  2. Updates for OSX El Capitan

    geoffharcourt committed Oct 2, 2015
    * 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](
    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
Commits on Jul 28, 2015
  1. Link to thoughtbot/dotfiles in README

    s a n d a l z committed with croaky Jul 28, 2015
Commits on Jul 27, 2015
  1. Update README to reference Hub

    xuebingli committed with croaky Jul 27, 2015
    The script installs `hub` instead of `gh` as of
    commit 9fe038c.
Commits on May 30, 2015
  1. Install Zsh via Homebrew

    croaky committed May 22, 2015
    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. Fix rbenv init argument order

    bb committed with croaky May 28, 2015
    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. Add code of conduct

    croaky committed Apr 8, 2015
Commits on Mar 7, 2015
  1. Rework thoughtbot section of README

    croaky committed Mar 7, 2015
    * 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. Default $skip_new_line to 0

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

    croaky committed Feb 15, 2015
  2. Revert `gh` to `hub`

    seanpdoyle committed with croaky Dec 18, 2014
    `hub`, like `gh`, is now powered by the Go programming language.
    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:
    It has been bottled in Homebrew:
  3. Add link to wiki from README for customizations

    Richard Moorhead committed with croaky Feb 14, 2015
Commits on Feb 3, 2015
  1. Correct typo in README

    reshleman committed Feb 3, 2015
    The sample `.laptop.local` incorrectly referred to
    `gem_install_or_upgrade` instead of `gem_install_or_update`.
Commits on Jan 18, 2015
  1. Fix rbenv idempotence

    croaky committed Jan 12, 2015
    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. Add brew_tap function

    AlJohri committed with croaky Jan 11, 2015
    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. Remove NVM, simplify to `brew install node`

    croaky committed Jan 12, 2015
    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. Restart Redis

    croaky committed Jan 5, 2015
Commits on Dec 29, 2014
  1. Setup travis build to run shellcheck

    pbrisbin committed Dec 29, 2014
    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
  2. Remove bashisms, use /bin/sh shebang

    pbrisbin committed Dec 18, 2014
    - Remove glob within test command
    - Replace [[ bashism with POSIX [
    - Replace source bashism with POSIX .
    - Replace (( bashism with POSIX [
    - Remove process substitution bashism
    Other fixes:
    - Simplify return value negation
    - Use grep -F for speedup on non-regex
    - Use $HOME consistently over ~
Commits on Dec 22, 2014
  1. Add gem_install_or_update function

    croaky committed Dec 19, 2014
    * Use it for Bundler.
    * Document it for others' use in their ~/laptop.local.
    * Delete out of date part of README.
  2. Install, upgrade, or skip Bundler

    croaky committed Dec 19, 2014
Commits on Dec 19, 2014
  1. Use rbenv shell instead of rbenv local

    croaky committed Dec 19, 2014
    `rbenv local` creates a `.ruby_version` file
    in the current directory.
  2. Use Homebrew for Git

    croaky committed Dec 19, 2014
    We previously relied on the version of Git
    that comes with Xcode.
    The Homebrew version is easier to upgrade
    when new versions of Git are released,
    such as yesterday's security patch: