Sync your config files between macs through your Github repository.
I made this for resolving the keeping the consistent configs issue between mac.
debug
flag.
-
No need to write any shell scripts to sync config files.
-
Easy to manage lots of config files using saving those to your Github repository.
-
Easy to check diffs between remote configs and local configs.
-
Easy to Edit your config files in your local, Github directly.
$ brew tap jopemachine/mac-sync-config
$ brew install mac-sync-config
-
Create a repository for
mac-sync-config
through your Github account. -
Add
mac-sync-configs.yaml
to themain
branch of the repository. -
Run
mac-sync-config push
to upload the configuration files to the repository. Note that you need to enter Github access token when you first try it. -
Run
mac-sync-config pull
to download configuration files from the repository.
Below example upload the specified config files to mac-sync-configs
folder of the repository.
You can also specify directory path to the below paths.
Example:
sync:
# You can use '~'.
- ~/.tmux.conf
# You can specify directory.
- ~/Library/Application Support/PopClip/
You can use multiple profiles for your own purpose.
For example, it could be useful when you want to save multiple config files to each profile.
You can use profile name to upload from or to the profile folder.
$ mac-sync-config push [profile name]
$ mac-sync-config pull [profile name]
NAME:
mac-sync-config - Sync the config files between macs through Github
USAGE:
mac-sync-config command [command options] [arguments...]
COMMANDS:
push Push the local config files to the remote repository
pull Pull the config files from the remote repository
list, ls Show the configuration files list
switch-profile, profile Change default profile. This could be useful when you need to the configuration set
delete-keychain Delete keychain configurations
GLOBAL OPTIONS:
--debug use panic instead of log.Fatal to show stacktrace (default: false)
--help, -h show help (default: false)
--version, -v print the version (default: false)
- my-mac-sync-configs - my
mac-sync-configs
config files.