~roryrjb/ps1

A simple compiled PS1 with Git integration, usable in any shell
Add a 'no status' option -n
Print a tilde in basename mode

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~roryrjb/ps1
read/write
git@git.sr.ht:~roryrjb/ps1

You can also use your local clone with git send-email.

#ps1

A simple compiled PS1 with Git integration, usable in any shell

#About

ps1 is a very small application that can serve as your $PS1 (or equivalent) in your shell.

It is opinionated and the format is currently hardcoded.

#Usage

As it is written in C and is compiled it should be usable in any shell. To use in any Bourne descended shells, for example, you can simply:

PS1='[$(ps1)]\$ '

#Installation

The Git integration requires libgit2. If it is available and if you also have pkg-config and make you can:

# make install