Some function(s) for $PS1
C Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
README.org

README.org

Benjamin A’s PS1

baps1 is meant to be used in your shell prompt and shows the current tty and time since the last call to baps1 for that tty, which can give you a rough estimation of the time duration of the last command. It is basically like calling every command with time <command> (plus the time it took you to write out the command).

Example output: p1:5m43s

To use it as it was intended put the following in your PS1 or PROMPT variable, depending on whether you use bash or zsh:

PS1="\$(/path/to/baps1)"

Or, if you like single quotes, use:

PS1='$(/path/to/baps1)'