diff --git a/.aliases b/.aliases index c584c1a41ab..84b065983c4 100644 --- a/.aliases +++ b/.aliases @@ -49,7 +49,7 @@ alias sudo='sudo ' alias week='date +%V' # Get macOS Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages -alias update='sudo softwareupdate -i -a; brew update; brew upgrade; brew cleanup; npm install npm -g; npm update -g' # gem updating is problematic on Mojave; sudo gem update --system; sudo gem update; sudo gem cleanup' +alias update='sudo softwareupdate -i -a; brew update; brew upgrade; npm install npm -g; npm update -g' # gem updating is problematic on Mojave; sudo gem update --system; sudo gem update; sudo gem cleanup' # Google Chrome alias chrome='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome' diff --git a/brew.sh b/brew.sh index 8e96a86abd8..78d22ba3730 100755 --- a/brew.sh +++ b/brew.sh @@ -11,14 +11,15 @@ fi; # Save Homebrew’s installed location. BREW_PREFIX=$(brew --prefix) -# Make sure we’re using the latest Homebrew. -brew update - # Upgrade any already-installed formulae. brew upgrade # Install everything inside Brewfile brew bundle +echo 'Be sure to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.' +echo 'Add `$(brew --prefix findutils)/libexec/gnubin` to `$PATH` if you would prefer these be the defaults.' +echo 'Be sure to add `$(brew --prefix gnu-sed)/libexec/gnubin` to `$PATH`.' +echo 'If you would like to map vi so it opens the brew-installed vim: ln -s /usr/local/bin/vim /usr/local/bin/vi' ln -s "${BREW_PREFIX}/bin/gsha256sum" "${BREW_PREFIX}/bin/sha256sum" @@ -27,6 +28,3 @@ if ! fgrep -q "${BREW_PREFIX}/bin/bash" /etc/shells; then echo "${BREW_PREFIX}/bin/bash" | sudo tee -a /etc/shells; chsh -s "${BREW_PREFIX}/bin/bash"; fi; - -# Remove outdated versions from the cellar. -brew cleanup