3 releases

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

#2668 in Command line utilities

Download history 22/week @ 2024-07-24 8/week @ 2024-07-31 4/week @ 2024-09-18 4/week @ 2024-09-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

~2–15MB
~140K SLoC