git-radar-rs

Crates.iogit-radar-rs
lib.rsgit-radar-rs
version0.1.2
sourcesrc
created_at2024-05-19 09:18:42.150286
updated_at2024-05-21 05:58:24.230595
descriptionRust version of git-radar or gitHUD
homepage
repositoryhttps://github.com/untoldwind/git-radar-rs
max_upload_size
id1244805
size66,885
Bodo Junglas (untoldwind)

documentation

README

git-radar-rs

Rust version of git-radar or gitHUD

Install

Cargo

cargo install git-radar-rs

Note: By default git-radar-rs compiles with support for libgit2 (via: https://github.com/rust-lang/git2-rs). If this causes problems use:

cargo install --no-default-feature git-radar-rs

to install a version that uses the git command-line (just like the original git-radar)

Setup

Bash

Example for a simplistic bash-prompt:

export PS1="\W\$(git-radar-rs bash)\[\033[0m\]\$ "

Zsh

Example for a simplistic zsh-prompt:

setopt PROMPT_SUBST
export PROMPT='%1d $(git-radar-rs zsh)$ '
Commit count: 26

cargo fmt