Permalink
Commits on Mar 9, 2016
  1. @croaky

    Provide Docker as an example customization

    Docker isn't in common enough use at thoughtbot to
    make this part of the script yet
    but documenting it can encourage its use.
    
    #411 (comment)
    croaky committed Mar 9, 2016
  2. @croaky
Commits on Mar 8, 2016
  1. @croaky
Commits on Feb 22, 2016
  1. @bikolya

    Remove dead link

    El Capitan and Homebrew problem was fixed by further OS X updates
    Document was removed from Homebrew docs: Homebrew/legacy-homebrew@dd1625a
    bikolya committed Feb 22, 2016
Commits on Jan 28, 2016
  1. @croaky

    Improve readability of permissions code

    * 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
    croaky committed Jan 28, 2016
Commits on Jan 26, 2016
  1. @croaky

    Don't link OpenSSL

    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)
    croaky committed Jan 26, 2016
  2. @croaky

    Revert "Clean up old Homebrew formulas after run"

    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`.
    Dan Croak and Gabe Berke-Williams committed with croaky Jan 16, 2016
  3. @croaky

    Document how to run `rcup` in customizations

    * 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
    Dan Croak and Gabe Berke-Williams committed with croaky Jan 16, 2016
Commits on Jan 17, 2016
  1. @pra85

    Update license year to 2016

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

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

    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.
    Dan Croak and Gabe Berke-Williams committed with croaky Jan 16, 2016
Commits on Jan 11, 2016
  1. @croaky

    Check for dead symlinks, relink valid formulae

    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
    croaky committed Jan 10, 2016
  2. @croaky

    Group related lines together by printed headers

    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.
    croaky committed Jan 11, 2016
Commits on Jan 10, 2016
  1. @AlJohri @croaky

    Fix brew_expand_alias for non-standard packages

    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.
    AlJohri committed with croaky Jun 13, 2015
  2. @croaky

    Install Parity

    * 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
    croaky committed Jan 10, 2016
  3. @croaky

    Clean up old Homebrew formulas after run

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

    Migrate to built-in Homebrew-Cask

    > 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
    croaky committed Jan 10, 2016
Commits on Jan 9, 2016
  1. @croaky

    Match rbenv init line to thoughtbot/dotfiles

    `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
    croaky committed Jan 7, 2016
  2. @coisnepe @croaky

    Updated the link to Tmux

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

    Fix wording regarding directories on OS X

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

    Updates for OSX El Capitan

    * 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.
    geoffharcourt committed Oct 2, 2015
Commits on Jul 28, 2015
  1. @croaky

    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. @xuebingli @croaky

    Update README to reference Hub

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

    Install Zsh via Homebrew

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

    Fix rbenv init argument order

    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.
    bb committed with croaky May 28, 2015
Commits on Apr 8, 2015
  1. @croaky

    Add code of conduct

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

    Rework thoughtbot section of README

    * 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.
    croaky committed Mar 7, 2015
Commits on Feb 20, 2015
  1. @pbrisbin

    Default $skip_new_line to 0

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

    Update copyright to 2015

    croaky committed Feb 15, 2015
  2. @seanpdoyle @croaky

    Revert `gh` to `hub`

    `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/legacy-homebrew@1ad37e4
    seanpdoyle committed with croaky Dec 18, 2014
  3. @croaky

    Add link to wiki from README for customizations

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

    Correct typo in README

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

    Fix rbenv idempotence

    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.
    croaky committed Jan 12, 2015
Commits on Jan 16, 2015
  1. @croaky