@qwe19272375/hyper-sync-settings v2.0.8
Hyper Sync Settings
Sync Hyper settings with Github.
Setup
Create a new personal access token which has the
gistscope. Save your token topersonalAccessTokeninside~/.hyper_plugins/.hyper-sync-settings.json. Alternatively, set theHYPER_SYNC_SETTINGS_PERSONAL_ACCESS_TOKENenvironmental variable using this token.Create a new gist and save it. Save your gist id (last part of the url after the username) to
gistIdinside~/.hyper_plugins/.hyper-sync-settings.json. Alternatively, set theHYPER_SYNC_SETTINGS_GIST_IDenvironmental variable using this id.Restart Hyper.
Disclaimer: Github Gists are by default public. If you don't want other people to easily find your gist (i.e. if you use certain packages, storing auth-tokens, a malicious party could abuse them), you should make sure to create a secret gist.
How to use

Use the commands below in the menu:
Plugins > Sync Settings > Check for UpdatesChecks Github to see if there are any updates available for your settings.
Plugins > Sync Settings > Backup SettingsCopies your
~/.hyper.jsfile to your local repository and pushes it to Github.Plugins > Sync Settings > Restore SettingsFast forwards local repo with all new commits from Github and copies the new settings to your
~/.hyper.jsfile.Plugins > Sync Settings > Open >Gist: Opens the link to the configured Gist.Repo: Opens the local repo that is cloned from the Gist.Configuration: Opens the~/.hyper_plugins/.hyper-sync-settings.jsonconfig file.
Configuration
Add syncSettings in your .hyper.js config. The configuration below shows all
existing configuration values in their default states.
module.exports = {
config: {
// other configs...
syncSettings: {
quiet: false,
accelerators: {
checkForUpdates: 'CmdOrCtrl+8'
}
},
},
// ...
}config.syncSettings.quiet
- Type: boolean
- Default: false
Mute the notification saying "Your settings are up to date". This will not hide any other notifications.
config.syncSettings.accelerators
- Type: object
- Default: {}
Add configurable keyboard shortcuts to each of the menu options. The value of each of the properties should be a valid Electron Accelerator. The available options are:
checkForUpdatesbackupSettingsrestoreSettingsopenGistopenRepoopenConfiguration
Contribution
Please help improve this package! There's lots of room for stability and new features to be made, so I would love if you could help improve it :)
Credit
Credit where credit's due; the idea of this comes directly from
atom-sync-settings.
Contributors
Thanks go out to @rfgamaral for all the help getting this working on Hyper 2.0 and fixing stuff on Windows!