GitXplorerGitXplorer
r

ps1

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
cd4d5fa6e9f8ac35431457133af0de977de24de0

Ensure dirs are created in install

rroryrjb committed 4 years ago
Unverified
f015fc4a13d8907e1a6653499551ffd0cbac693b

Add manpage

rroryrjb committed 4 years ago
Unverified
6f3dce5812012b8c8d95a5ae302ebc2bc86f9580

Print a tilde in basename mode

rroryrjb committed 4 years ago
Unverified
8f2145a27ca75ca0dfc72eb6b2f26311c3e8a31b

Add basename option

rroryrjb committed 4 years ago
Unverified
7df61cee2f0453df805f159edaee587a970717f7

Make git search up directory trees

rroryrjb committed 4 years ago
Unverified
8cdab027eeabd6b34af5cd7e9fb120a08fabdbd2

Replace $HOME properly

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