Skip to main content

Add an icon to a directory on macOS

Jose CerrejonLess than 1 minuteApple

Add an icon to a directory on macOS

png image + folder = folderified!
png image + folder = folderified!

This is the kind of article nobody reads, but everybody want to try. It's a simple trick to add an icon to a directory on macOS using a line command app called folderify. Instructions inside the article!...


To install, use brew:

brew install folderify

Then, to add an icon to a directory, just use the following command:

folderify mask.png /path/to/folder

For example, I've used this PNG image for the directory where I have all my source code:

source code icon
Source code icon

Then I run:

folderify source_code.png $HOME/Documents/sc
Running folderify on the Terminal
Running folderify on the Terminal

Et voi là! I have a nice icon for that directory. ❤️

source code folder
Source code folder