nixpulvis / oursh

Your comrade through the perilous world of UNIX.
http://nixpulvis.com/oursh/oursh
MIT License
67 stars 6 forks source link

Dynamic Prompt #19

Closed nixpulvis closed 3 years ago

nixpulvis commented 5 years ago

We currently store a pre-formatted string to be used as the prompt. This is great because it's never slow, but horrible because it can't change as the shell lives. We need to support both run-time updating prompts (this issue), and configurable prompts eventually.

For now I'd be happy if updating your hostname updates a prompt like short_style without restarting.

nixpulvis commented 3 years ago

The prompt now reads from $PS1 before each line, in #51.