Giter Site home page Giter Site logo

gitusr's Introduction

gitusr

gitusr is a shell script that allows you to easily manage using multiple git hub accounts. The script adds a shell command gitusr. This shell command allows you to change or check the current git hub account with a simple flag. For example, to change to your work email you might type gitusr -w.

(Full feature list below)

Setup

Run the setup.py script and answer the questions. When in the directory containing setup.py, you can run the python script using:

./setup.py

The script will ask you for an email and then a flag to use with that email. It will continue doing this until you type done for an email. Then it will output the shell script to /usr/local/bin/gitusr. This will allow you to use the gitusr command in your shell.

Reconfigure

Run the setup.py script again. This will ask you the same questions and overwrite the existing shell script.

Uninstall

Delete the shell script file. This can be done with the command:

rm /usr/local/bin/gitusr

Features

  • Check git email of current repository

    gitusr

    or check global git email

    gitusr -g
  • Change the current git email (Assuming you have an email set to use the -w flag)

    gitusr -w

    or change the global git email

    gitusr -g -w
  • Display a help message (including set email flags)

    gitusr -h

TODOS

  • Allow Setup.py to take command line arguments

System Requirements

The setup script is written in python 3 so you will need python 3.

gitusr's People

Contributors

jeffrutledge avatar hellyeah123 avatar

Stargazers

Nathaniel Diamant avatar

Watchers

James Cloos avatar  avatar  avatar

gitusr's Issues

Doesn't display current email on Ubuntu

When installed and used on an Ubuntu system, using the function without an email flag does not just print the current git email.

This seems to be because the command which the script runs in this case

git config user.email

does not behave as it does on mac osx where it prints the current email.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.