Skip to content

michalgcc/posh-git-rust

Repository files navigation

posh-git-rust

Implementation of posh-git written in Rust. Based on https://github.com/dahlbyk/posh-git.

Installation

Tested on Fedora Linux 35, Rust 1.59 stable

Linux x86_64:

  • Execute sudo wget -c https://github.com/michalgcc/posh-git-rust/releases/download/v0.4.3/posh-git-rust-0.4.3-x86_64-linux-gnu.tar.gz -O - | sudo tar -xz -C /usr/bin/
  • Update .bashrc to include posh-git-rust binary in prompt posh-git-rust "$(git status --long 2>&1)"
    • Example: PS1='[\u@\h \W] $(posh-git-rust "$(git status --long 2>&1)")$ '

Example:

example_output