permacomputing

Source repository for the main permacomputing wiki site
git clone http://git.permacomputing.net/repos/permacomputing.git # read-only access
Log | Files | Refs

commit 006d01eb6535f823319fc944140bf60952ed169a
parent b94e718f902720206084f2b76a2484de73d80d79
Author: Nick Moffitt <nick@zork.net>
Date:   Wed, 20 May 2026 09:05:13 +0100

test wiki edit via git

Diffstat:
Mspacehobo.mdwn | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/spacehobo.mdwn b/spacehobo.mdwn @@ -1,6 +1,6 @@ # Just a Rum-Soaked Space Hobo with an Inordinate Fondness for Makefiles -Hello, I'm from the [London Permacomputing Group](https://london.permacomputing.net). I've been using Unix and The Internet since the 1980s, and Linux since the mid-90s. I like small open software I can wrap my head around, but I'm not a fan of those "suckless" folks. +Hello, I'm from the [London Permacomputing Group](https://london.permacomputing.net). I've been using Unix and The Internet since the 1980s, and Linux since the mid-90s. I like small open software I can wrap my head around, but I'm not a fan of those "suckless" fash types. ## Prompt Engineering @@ -8,8 +8,6 @@ Check out my neat `bash` prompt, which I put in eik's `/etc/bash_completion.d/pr * [Prompt Engineering](https://git.permacomputing.net/prompt-engineering/files.html) - - The `$PS1` text expansion environment is fairly limited. It can do parameter expansion, reference expansion, arithmetic expansion, and a couple other neat tricks. You can shell out, but if you do that it can overwrite the variable that contains the last exit code (`$?`). A lot of heavyweight systems like powerline or starship will tuck this data away before running loads of programs every time you hit return at the shell. I wanted to see if I could do more with less. Tools such as the `$(__git_ps1)` hacks do their best to only use features of bash that work internally to bash itself. They make internal functions that try not to fork off processes if they can help it. I was inspired by the Debian `$PS1`'s handling of their `$debian_chroot` variable, and decided to try and make a dynamic prompt that only shows information if it's relevant.