Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions mac
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ if ! brew list -1 | grep mongodb-community ; then
brew install mongodb-community
fi

fancy_echo "Installing Oh My Zsh ..."
if [ ! -d "$HOME/.oh-my-zsh/" ]; then
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi

brew install chruby
# shellcheck disable=SC1091
. "$HOMEBREW_PREFIX/opt/chruby/share/chruby/chruby.sh"
Expand Down Expand Up @@ -154,9 +159,6 @@ if [ ! -d "$HOME/.rubies" ]; then

fancy_echo "Setting default Ruby ..."
echo "$ruby_version" > "$HOME/.ruby-version"
# https://batsov.com/articles/2022/09/15/reload-zsh-configuration/
# shellcheck disable=SC1091
. "$HOME/.zshrc"
# After installing new Rubies, one must restart the shell before chruby can recognize them.
# https://github.com/postmodern/chruby#rubies-1
# chruby "$ruby_version" # won't work, only sets shell's $RUBY_VERSION to default Ruby
Expand Down Expand Up @@ -189,11 +191,6 @@ if [ ! -d "$HOME/.rubies" ]; then
# --with-mysql-dir="$HOMEBREW_PREFIX/opt/mysql" --with-openssl-dir="$HOMEBREW_PREFIX/opt/openssl"
fi

fancy_echo "Installing Oh My Zsh ..."
if [ ! -d "$HOME/.oh-my-zsh/" ]; then
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi

# In the past it was necessary to install Apple's XCode IDE to get
# basic tools like GCC, Git and Subversion on your machine, but
# nowadays there is a slim solution by just installing the command line tools
Expand Down
Loading