prompt-engineering

a low-resource dynamic shell prompt for bash
git clone http://git.permacomputing.net/repos/prompt-engineering.git # read-only access
Log | Files | Refs | README

commit 128d82edc4f4141688fb6459d850b58ff0b7e233
parent ed36c8e59d7244ec024617c865294e0b8a0742a3
Author: Nick Moffitt <nick@zork.net>
Date:   Sun, 17 May 2026 19:03:55 +0100

Installation instructions

Diffstat:
MREADME.md | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -37,6 +37,28 @@ Colours have been chosen to highlight urgent information, such as non-zero exit codes blinking the $ or # as appropriate. +# Installation + +The smoothest way to install this system-wide is to clone this repository somewhere visible, such as `/opt` or somewhere under `/usr/local` or something. Then symlink it into a directory your system uses for bash startup scripts. For example on Debian: + +``` +cd /opt +git clone http://git.permacomputing.net/repos/prompt-engineering.git +cd /etc/bash_completion.d +ln -sf /opt/prompt-engineering/prompt.sh +``` + +or on Alpine-derived systems, you'd do something like this: + +``` +cd /opt +git clone http://git.permacomputing.net/repos/prompt-engineering.git +cd /etc/bash +ln -sf /opt/prompt-engineering/prompt.sh +``` + +You may need to tinker with which directory runs most reliably on interactive shell session startup for your system type. + # Implementation The `bash(1)` manual page describes the behaviour of `$PS1` as follows: