4 releases
Uses new Rust 2024
| 0.1.3 | Oct 29, 2025 |
|---|---|
| 0.1.2 | Sep 28, 2025 |
| 0.1.1 | Sep 26, 2025 |
| 0.1.0 | Sep 26, 2025 |
#90 in Email
29KB
690 lines
Today I'd like to be
i should probably add a preview here someday
Table of contents
What is this?
This is a simple cli tool for switching your git account, to be specific:
- Generates ssh key
- Automatically configure user.name and user.email
- Automatically sets remote
Installation
Windows
cargo install todayidliketobe
Linux/macOS
Same as above, haven't tested but should work in theory.
Usage
To check all possible actions:
tilb --help
Say you have two git accounts, one for work named as workuser and the other for personal named as personaluser. And you already logged in as personaluser with any credential manager. You can add those users like so:
tilb add workuser workusermail@lovely.com
tilb add -u personaluser personaluser@lonely.com
Once added, you can check it has been successfully add via:
tilb list
Now say you already logged in as personaluser before, but you got a repo folder that requires workuser, you can cd into the folder then:
tilb switch workuser
then do your git commands.
Now say you got laid off, you can do
tilb remove workuser
FAQ
What is this name?
i thought it was funny the first 5 seconds i came up with this name :p
Artefacts
This cli generates:
- ~/.tilb/config.json
- ~/.ssh/tilb/(private keys)
Which will not be deleted if uninstalled
And modifies:
- ~/.ssh/config
With banner starts as #tilb_generated
Dependencies
~9–23MB
~308K SLoC