Skip to content

Commit c3b2ca6

Browse files
committed
Fixes for laptop script as of 3/30
1 parent 5e9632f commit c3b2ca6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

mac.sh

+6-4
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@ install_or_update_homebrew() {
138138

139139
install_latest_ruby() {
140140
append_to_zshrc 'eval "$(rbenv init - zsh --no-rehash)"' 1
141-
ruby_version="2.3.7"
141+
ruby_version="2.3.7" # TODO: If we bump this, openssl should be bumped to 1.1.x, probably.
142142
eval "$(rbenv init - zsh)"
143143

144144
if ! rbenv versions | grep -Fq "$ruby_version"; then
145-
# See: https://github.com/rbenv/ruby-build/issues/1353#issuecomment-537749304
146-
RUBY_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/opt/openssl" rbenv install -s "$ruby_version"
145+
# See: https://github.com/rbenv/ruby-build/issues/1353#issuecomment-573414540
146+
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.0)" rbenv install -s "$ruby_version"
147147
fi
148148

149149
rbenv global "$ruby_version"
@@ -231,6 +231,7 @@ brew_install_or_upgrade 'git'
231231
install_postgresql
232232
brew_install_or_upgrade 'redis'
233233
brew_launchctl_restart 'redis'
234+
brew_install_or_upgrade 'sops'
234235
brew_install_or_upgrade 'the_silver_searcher'
235236
brew_install_or_upgrade 'vim'
236237
brew_install_or_upgrade 'ctags'
@@ -245,6 +246,7 @@ brew_install_or_upgrade 'ruby-build'
245246
brew_install_or_upgrade 'wget'
246247
brew_install_or_upgrade 'autojump'
247248
brew_install_or_upgrade 'openssl'
249+
brew_install_or_upgrade 'rbenv/tap/[email protected]' # For ruby-build specifically
248250
brew unlink openssl && brew link openssl --force
249251
brew_install_or_upgrade 'z'
250252

@@ -263,7 +265,7 @@ install_vim_config
263265
# Setup Google Cloud Platform/Kubernetes Tooling
264266
cask_install_or_upgrade 'google-cloud-sdk'
265267
gcloud components install kubectl docker-credential-gcr pubsub-emulator
266-
brew_install_or_upgrade 'kubernetes-helm'
268+
brew_install_or_upgrade 'helm@2'
267269
append_to_zshrc 'source /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc'
268270
append_to_zshrc 'source /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc'
269271
append_to_zshrc 'eval "$(kubectl completion zsh)"'

0 commit comments

Comments
 (0)