Last active
March 25, 2024 16:08
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
Author
jasonm23
commented
Nov 14, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment