def cmd_install(args):

    aliases = [
        'branches',
        'graft',
        'harvest',
        'publish',
        'unpublish',
        'sprout',
        'sync',
        'switch',
        'resync',
    ]

    print('The following git aliases have been installed:\n')

    for alias in aliases:
        cmd = '!legit ' + alias
        os.system('git config --global --replace-all alias.{0} "{1}"'.format(alias, cmd))
        print(columns(['', 1], [colored.yellow('git ' + alias), 20], [cmd, None]))

    sys.exit()
Installs legit git aliases.
dataset/ETHPy150Open kennethreitz/legit/legit/cli.py/cmd_install