summaryrefslogtreecommitdiffstats
path: root/baps1.page
blob: 573b082838ce3ffb962f59e2b9f38fcff8a37717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
;;;;;
title: baps1
url: projects/baps1.html
;;;;;

## What does it do?

baps1 offers a, hopefully, efficient and easy way to add certain data
to your PS1 (prompt), regardless of which shell you use.

A friend of mine wanted a better way to get some functionality into
his PS1 that he was using a PHP script for, I knew how to do that in C
and thought it would be a fun project and good learning experience, so
here we are.

It shows the following:

- The PTY or TTY you are using.

- How long ago the last call to baps1 was on that terminal, which
  should also indicate how long ago your PS1 was printed last.

## Requirements

It is written for and tested on Linux (specifically Archlinux) and it
uses the GNU C library.

## Download

You can browse the
[git source](http://code.ryuslash.org/cgit.cgi/baps1/), download a
snapshot
[tar.gz](http://code.ryuslash.org/cgit.cgi/baps1/snapshot/baps1-master.tar.gz)
or
[zip](http://code.ryuslash.org/cgit.cgi/baps1/snapshot/baps1-master.zip)
archive or clone the source using git:

    git clone git://ryuslash.org/baps1.git

## Documentation

For further instructions on how to use baps1, see the
[README](http://code.ryuslash.org/cgit.cgi/baps1/about/) in the source
directory (or follow the link).

## Contact

If you find any bugs, have suggestions or criticisms you can send them
to "tom at ryuslash dot org".

<!-- Local Variables: -->
<!-- mode: markdown -->
<!-- End: -->