GitXplorerGitXplorer
r

ps1

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
b731ef646c0ea03636facf4ee412a9f2774dad45

Add documentation, LICENSE and CONTRIBUTING

rroryrjb committed 4 years ago
Unverified
6622cd875c415839fe85e3af46e40d87be0f5724

Don't wrap $ in escape sequences

rroryrjb committed 4 years ago
Unverified
3af953a3eb06a96ede3e1fc3369394c648d267cb

Make output prettier

rroryrjb committed 4 years ago
Unverified
0cd0507956e27b106d49af0bb4fc8ac56de35098

Init

rroryrjb committed 4 years ago

README

The README file for this repository.

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