HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

fileicon — Manage custom file and folder icons. More information: <https://github.com/mklement0/fileicon>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandandfolderfileiconmanageclicustomfile
macos

Problem

How to use the fileicon command: Manage custom file and folder icons. More information: <https://github.com/mklement0/fileicon>.

Solution

fileicon — Manage custom file and folder icons. More information: <https://github.com/mklement0/fileicon>.

Set a custom icon for a specific file or directory:
fileicon set {{path/to/file_or_directory}} {{path/to/icon_file.png}}


Remove a custom icon from a specific file or directory:
fileicon rm {{path/to/file_or_directory}}


Save the custom icon of a file or directory as a .icns file into the current directory:
fileicon get {{path/to/file_or_directory}}


Test if a specific file or directory has a custom icon:
fileicon test {{path/to/file_or_directory}}

Code Snippets

Set a custom icon for a specific file or directory

fileicon set {{path/to/file_or_directory}} {{path/to/icon_file.png}}

Remove a custom icon from a specific file or directory

fileicon rm {{path/to/file_or_directory}}

Save the custom icon of a file or directory as a `.icns` file into the current directory

fileicon get {{path/to/file_or_directory}}

Test if a specific file or directory has a custom icon

fileicon test {{path/to/file_or_directory}}

Context

tldr-pages: osx/fileicon

Revisions (0)

No revisions yet.