#git #version #git-radar #git-hud

app git-radar-rs

Rust version of git-radar or gitHUD

3 releases

0.1.2 May 21, 2024
0.1.1 May 19, 2024
0.1.0 May 19, 2024

#112 in #git

Download history 375/week @ 2024-05-18 15/week @ 2024-05-25

91 downloads per month

MIT license

46KB
1K SLoC

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)$ '

Dependencies

~3–15MB
~160K SLoC