mackup icon indicating copy to clipboard operation
mackup copied to clipboard

Add option to generate custom app config by name

Open alin23 opened this issue 8 years ago • 1 comments

Fixes #958

Problem

Creating custom app configs by hand is slow.

Solution

A single command to generate a config and populate it with relevant data based on the app name. The algorithm searches the following locations for filenames that contain the app name:

  • ~/Library/Preferences
  • ~/.config
  • ~/ (only filenames starting with .)

Example:

> mackup generate hyper

will have the following output:

Creating /Users/alin/.mackup/hyper.cfg with the following data:

[application]
name = Hyper

[configuration_files]
.hyper.js

> mackup generate paste

will have the following output:

Creating /Users/alin/.mackup/paste.cfg with the following data:

[application]
name = Paste

[configuration_files]
library/preferences/com.wiheads.paste-helper.plist
library/preferences/com.wiheads.paste.plist

alin23 avatar Jan 07 '17 14:01 alin23