A simple compiled PS1 with Git integration, usable in any shell
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.
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)]\$ '
The Git integration requires libgit2
.
If it is available and if you also have pkg-config
and make
you can:
# make install