Table of Contents
colormkdir is a CLI for macOS to customize folder color.
It can make directory in specified color. Also, it can manage color list by editing json file.
Supported platforms
- macOS
brew install mimomimoto/tap/colormkdir
colormkdir use python3 and you need to install some libraries.
pip install pyobjc pillow glob2
- git clone this repository.
- Write PATH to
~/.zshrc. - Change
colormkdirpermission by using chmod. - run
source ~/.zshrc. pip install pyobjc pillow glob2
colormkdiruse your global python environment. If you don't want to install these libraries in your global environment, you should edit colormkdir.sh (line 64).
Color list is managed by JSON file. (If you use Homebrew, the file path is '/opt/homebrew/Cellar/colormkdir/0.0.1/libexec/color_list.json' in my case) You need to decide color name and color code as shown below. (It is a default definition)
{
"r":"#ff0000",
"b":"#1e90ff",
"g":"#3cb371",
"y":"#ffff00",
"p":"#9400d3",
"o":"#ff7f50"
}
After change color list, you need to run command for updating color list.
colormkdir -u
colormkdir -m [value] <directory name>
[value] is color name defined in color list. If directory name is already exsisted, it will be error.
colormkdir -c [value] <directory name>
[value] is color name defined in color list. If directory name is not exsisted, it will be error.
colormkdir -h

