For users running the Laptop script
who once had `heroku-toolbelt` installed,
it's possible their `PATH` may be out of date.
Use a similar pattern for updating the link to the `heroku` binary
as we used when migrating `qmake` for `qt5.5` from `qt`.
Also, update documentation.
Related: 3b7845b849
* We install zsh via Homebrew in the Laptop script.
* Checking for a different path via `which zsh`
caused the user to have to type their password every script run
to allow for `chsh` to run.
From the chsh documentation:
When altering a login shell, and not the super-user, the user
may not change from a non-standard shell or to a non-standard shell.
Non-standard is defined as a shell not found in /etc/shells.
This reverts commit ef7408d6a1.
* `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`.
* 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`.
https://github.com/thoughtbot/laptop/pull/408
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.
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.
* 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
> 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.
e83c0099aa
> To start using Homebrew-Cask, you just need Homebrew installed.
0d290b15e8
* 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.
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.
* 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.
`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:
1ad37e4770