| Crates.io | git-radar-rs |
| lib.rs | git-radar-rs |
| version | 0.1.3 |
| created_at | 2024-05-19 09:18:42.150286+00 |
| updated_at | 2025-08-01 21:49:02.819059+00 |
| description | Rust version of git-radar or gitHUD |
| homepage | |
| repository | https://github.com/untoldwind/git-radar-rs |
| max_upload_size | |
| id | 1244805 |
| size | 74,502 |
Rust version of git-radar or gitHUD
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)
To track the remote HEAD correctly it might be necessary to run a
git remote set-head origin --auto
once on the repository (or whenever the remote default branch is changed).
Example for a simplistic bash-prompt:
export PS1="\W\$(git-radar-rs bash)\[\033[0m\]\$ "
Example for a simplistic zsh-prompt:
setopt PROMPT_SUBST
export PROMPT='%1d $(git-radar-rs zsh)$ '
git-radar-rs can be used directly inside the "fish_prompt" function.
Example `.tmux.conf´:
set -g status-bg '#222222'
set -g status-fg '#ffffff'
set -g status-right "#{pane_current_command} #(cd '#{pane_current_path}' && git-radar-rs tmux)"