#git #git-version #zsh #bash #github #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

#2617 in Command line utilities

Download history 12/week @ 2024-07-03 22/week @ 2024-07-24 8/week @ 2024-07-31

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

~2–14MB
~141K SLoC