def load(plugin):
    from tiget.core import cmds
    plugin.add_cmds(cmds)
    plugin.add_settings(
        branch=BranchSetting(),
        remote=RemoteSetting(),
        debug=BoolSetting(default=False),
        color=BoolSetting(default=sys.stdout.isatty()),
        editor=StrSetting(default=os.environ.get('EDITOR', 'vi')),
        history_file=StrSetting(default='~/.tiget_history'),
        history_limit=IntSetting(default=1000),
        pager=StrSetting(default=os.environ.get('PAGER', 'less')),
        pdb_module=StrSetting(default='pdb'),
        repository=RepositorySetting(),
    )
    plugin.settings.branch = 'tiget'
    plugin.settings.remote = 'origin'
    try:
        plugin.settings.repository = '.'
    except __HOLE__:
        pass
dataset/ETHPy150Open natano/tiget/tiget/core/__init__.py/load