'Install .gitconfig-defined actions'

def _install_config_actions(self, names_and_shortcuts):

    if (not names_and_shortcuts):
        return
    menu = self.actions_menu
    menu.addSeparator()
    for (name, shortcut) in names_and_shortcuts:
        action = menu.addAction(name, cmds.run(cmds.RunConfigAction, name))
        if shortcut:
            action.setShortcut(shortcut)
