Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jasonm23/89ad29748f49ddbafab1 to your computer and use it in GitHub Desktop.
Save jasonm23/89ad29748f49ddbafab1 to your computer and use it in GitHub Desktop.
Upgrade emacs-mac homebrew and move app to Applications and apply custom icon
#!/bin/bash
# Update brew and upgrade Emacs mac (tap railwaycat in-case it's not already)
brew tap railwaycat/emacsmacport
brew update
if [[ -d /usr/local/Cellar/emacs-mac ]]; then
brew upgrade emacs-mac
else
brew install emacs-mac
fi
# Locate the Emacs.app from brew installed emacs-mac
mv $( brew info emacs-mac | grep -A1 "was installed to:" | tail -1 )/Emacs.app /Applications/
# Grab the emacs-icons-project carmine card icon.
wget https://github.com/emacsfodder/emacs-icons-project/raw/master/emacs-card-carmine.icns
mv emacs-card-carmine.icns /Applications/Emacs.app/Contents/Resources/Emacs.icns
# Touch Emacs.app to update the Finder icon cache.
touch /Applications/Emacs.app
@jasonm23
Copy link
Author

curl https://gist.githubusercontent.com/jasonm23/89ad29748f49ddbafab1/raw/upgrade-or-install-emacs-mac-port-with-custom-icon-via-homebrew.sh  | bash -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment