| Crates.io | fast-git-prompt |
| lib.rs | fast-git-prompt |
| version | 0.2.2 |
| created_at | 2024-08-10 10:46:14.885835+00 |
| updated_at | 2024-08-19 21:12:37.253883+00 |
| description | A fast git prompt for zsh and bash. |
| homepage | |
| repository | https://github.com/MasterGordon/fast-git-prompt |
| max_upload_size | |
| id | 1332247 |
| size | 25,271 |
A fast git prompt for zsh and bash.
This is a work in progress. More features will be added in the future.
cargo install fast-git-prompt
Make sure you have $HOME/.cargo/bin in your $PATH.
Include fast-git-prompt in your .zshrc or .bashrc file as part of your prompt.
Create a file called config.json in your $XDG_CONFIG_HOME/fast-git-prompt or $HOME/.config/fast-git-prompt directory.
The configuration of the prompt is fully modular and customizable.
{
"version-do-not-modify": "0.1.0",
"schema": "$XDG_CONFIG_HOME/fast-git-prompt/schema.json",
"baseColor": "white",
"prompt": [
// Your prompt parts go here
]
}
The color property of every icon is optional.
The branch name is the name of the current branch.
{
"type": "branchName",
"color": "white" // Optional
}
The origin icon is the icon of the current branch's remote.
{
"type": "originIcon",
"icons": {
"github.com": {
"icon": "",
"color": "white"
},
"gitlab.com": {
"icon": "",
"color": "brightRed"
}
},
"defaultIcon": {
"icon": "",
"color": "white"
}
}
The branch status is the status of the current branch.
{
"type": "BranchStatus",
"dirty": {
"color": "red",
"icon": "✗"
},
"clean": {
"color": "green",
"icon": ""
},
"deleted": {
"color": "red",
"icon": ""
},
"changed": {
"color": "yellow",
"icon": ""
},
"new": {
"color": "yellow",
"icon": ""
}
}
The branch sync is the sync status of the current branch.
{
"type": "BranchSync",
"ahead": {
"icon": "↑"
},
"behind": {
"icon": "↓"
}
}
You can currently only use ansi colors. Which will use by your terminal emulator.