Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kulichkoff/gprof

Simple as stupid python script to switch your git profile
https://github.com/kulichkoff/gprof

git git-profile python simple tiny

Last synced: about 2 months ago
JSON representation

Simple as stupid python script to switch your git profile

Awesome Lists containing this project

README

        

# GPROF

This is a very simple script that will help you to switch between your git profiles.
It is very useful if your job and home profiles are different.

## Prerequisites

- **Python 3.11** or earlier
- Unix-like system (not tested on windows yet)

## How to use

1. Create the config file in your home directory `~/.config/gprof/profiles`
2. Configure some profiles:

```toml
[home]
name = "My pretty name"
email = "[email protected]"

[job]
name = "My pretty name"
email = "[email protected]"
```

3. Here you are! Just start the script:

```shell
$ python3 gprof.py home|job|any_another_profile
# python3 gprof.py job
```