Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kulichkoff/gprof
- Owner: kulichkoff
- Created: 2024-08-15T09:10:26.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-08-15T13:05:51.000Z (5 months ago)
- Last Synced: 2024-08-16T11:01:31.595Z (5 months ago)
- Topics: git, git-profile, python, simple, tiny
- Language: Python
- Homepage:
- Size: 1000 Bytes
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```