379 Commits (trunk)
 

Author SHA1 Message Date
Dan Croak 0636eea198 Update heroku binary symlink in PATH
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
7 years ago
Derek Prior 0784550577 Merge pull request #498 from thoughtbot/dp-heroku
Install Heroku CLI instead of toolbelt
7 years ago
Derek Prior 3b7845b849
Install Heroku CLI instead of toolbelt
Heroku Toolbelt has been replaced, or perhaps just renamed to, Heroku
CLI. It is installed with `brew install heroku`. See:
https://devcenter.heroku.com/articles/heroku-cli#macos
7 years ago
Charlie Wood 4dcfacff5b Make script execution commands clearer
https://github.com/thoughtbot/laptop/pull/496
7 years ago
Dan Croak 803f7ca1f1 Add "mobile" to summary description in README 7 years ago
Dan Croak ea7db9be3b Add Watchman for watching filesystem changes
https://facebook.github.io/watchman/

> Watchman is a tool by Facebook for watching changes in the filesystem.
> It is highly recommended you install it for better performance.

https://facebook.github.io/react-native/docs/getting-started.html
7 years ago
Dan Croak 5817a120c3 Use Homebrew path for zsh conditional
* 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.
7 years ago
Dan Croak 4f96d474e5 Install Yarn
* Rails ships with Yarn.
  https://twitter.com/dhh/status/808348184481124352?lang=en
* We use Yarn in some of our project templates.
  https://github.com/thoughtbot/react-native-template/blob/master/TemplateProject/bin/setup
7 years ago
Chris Thorn d3343ba107 Add Sierra to supported list 7 years ago
Dan Croak aa4420650d Fix and improve shellcheck setup for TravisCI
Based on:

https://github.com/koalaman/shellcheck/wiki/TravisCI

Exclude SC2039

https://github.com/thoughtbot/laptop/issues/481
7 years ago
Dan Croak a11e4a509d Install Qt 5 instead of Qt 4
We install Qt because it is a dependency of Capybara Webkit.

> Qt 4 is several years old and contains a version of WebKit with many
> serious defects. Support for Qt 4 will be dropped in any future
> feature releases and is not supported by the capybara-webkit team.

https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit
7 years ago
Tyson Gach 85bdb3a2de Update thoughtbot logo 7 years ago
Björn Andersson 401107bcdd Set login shell to brew's zsh when available
Optimize for speed:

https://youtu.be/ZwNWviK5z0Q?t=9
7 years ago
Björn Andersson fc38941d4c Add zsh path to /etc/shells
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.
7 years ago
Ian Zabel 88168a25ae Merge pull request #478 from piratebroadcast/patch-1
Update license year to 2017
7 years ago
Ian Zabel 4b5c4aff5f Merge pull request #479 from piratebroadcast/patch-3
Update readme year to 2017
7 years ago
Jesse Waites 5e3e90c7cf Update readme year to 2017 7 years ago
Jesse Waites d24708c10c Update license year to 2017 7 years ago
Chenje Katanda 02ef6315cc Update readme
Change “OS X” to “macOS” to keeping up with apple’s rebranding of the
the operating system.
8 years ago
Dan Croak 62d80f27a5 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.

https://github.com/thoughtbot/laptop/pull/411#issuecomment-168594168
8 years ago
Dan Croak 0b440c5138 Use `brew bundle` instead of custom functions 8 years ago
Dan Croak 425e3bc545 Fix `brew tap thoughtbot/formulae`
https://github.com/thoughtbot/laptop/issues/437
https://github.com/thoughtbot/laptop/issues/448
8 years ago
Nikolay Bienko 7a834f7d3e Remove dead link
El Capitan and Homebrew problem was fixed by further OS X updates
Document was removed from Homebrew docs: dd1625af7a
8 years ago
Dan Croak 66f16d8690 Improve readability of permissions code
* Better reveal intent with `HOMEBREW_PREFIX` variable.
* Do less work by referencing `$USER` instead of `whoami`.

https://github.com/thoughtbot/laptop/issues/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
8 years ago
Dan Croak c8dca7705b 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
https://github.com/thoughtbot/laptop/issues/401#issuecomment-114518831
8 years ago
Dan Croak and Gabe Berke-Williams 0bcc0b4644 Revert "Clean up old Homebrew formulas after run"
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`.
8 years ago
Dan Croak and Gabe Berke-Williams 6dcb5e4f02 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`.

https://github.com/thoughtbot/laptop/pull/408
8 years ago
Prayag Verma 597c998a49 Update license year to 2016 8 years ago
Dan Croak and Gabe Berke-Williams 458f43e85b 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.
8 years ago
Dan Croak 7afe1652fd 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
8 years ago
Dan Croak 942ad3be89 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.
8 years ago
Al Johri 5d63acef2e 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.
8 years ago
Dan Croak d061842e25 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
8 years ago
Dan Croak ef7408d6a1 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.
8 years ago
Dan Croak c92c7adc7f 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.

e83c0099aa

> To start using Homebrew-Cask, you just need Homebrew installed.

0d290b15e8
8 years ago
Dan Croak 2c655fca56 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
8 years ago
Paul-Etienne Coisne 3e5cdaf706 Updated the link to Tmux
Was previously broken, now redirects to the current address
8 years ago
Dan Croak 36cd104021 Use rbenv for latest Ruby version, not S3 file 8 years ago
Dan Croak 847b244969 Install shellcheck differently for Travis
https://docs.travis-ci.com/user/installing-dependencies/#Installing-Packages-without-an-APT-Repository
8 years ago
Geoff Harcourt 73f353ef39 Fix wording regarding directories on OS X
@mike-burns pointed out that OS X does not have folders, it has
directories.
9 years ago
Geoff Harcourt c0d92c5b00 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.
9 years ago
s a n d a l z 1b2c9dbfcd Link to thoughtbot/dotfiles in README 9 years ago
Xuebing Li 73e960702d Update README to reference Hub
The script installs `hub` instead of `gh` as of
commit 9fe038cd81.
9 years ago
Dan Croak 61b093344a 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`.
9 years ago
Benjamin Bock f2dc3149b9 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.
9 years ago
Dan Croak 9fec1e59ed Add code of conduct 9 years ago
Dan Croak 41e07dca0c 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.
9 years ago
patrick brisbin c997c4fb5a
Default $skip_new_line to 0
In Bash, `[ "" -eq 1 ]` causes:

  [: : integer expression expected

Resolves #377
9 years ago
Dan Croak 268f1114af Update copyright to 2015 9 years ago
Sean Doyle 9fe038cd81 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:

1ad37e4770
9 years ago