# git-radar-rs Rust version of [git-radar](https://github.com/michaeldfallen/git-radar) or [gitHUD](https://github.com/gbataille/gitHUD) ## Install ### Cargo ```sh 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: ```sh 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: ```sh export PS1="\W\$(git-radar-rs bash)\[\033[0m\]\$ " ``` ### Zsh Example for a simplistic zsh-prompt: ```sh setopt PROMPT_SUBST export PROMPT='%1d $(git-radar-rs zsh)$ ' ```