roryrjb / ps1

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:GNU General Public License v3.0


Languages

Language:C 86.2%Language:Makefile 13.8%