/ps1

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

Primary LanguageCGNU General Public License v3.0GPL-3.0

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