From c299fb0ec1fed67248d5efd45685da9546a2e5ab Mon Sep 17 00:00:00 2001 From: CorruptedVor <51972476+CorruptedVor@users.noreply.github.com> Date: Wed, 31 May 2023 17:45:23 +0200 Subject: [PATCH] Add usage for PS1 README.md Not every shell has PROMPT_COMMAND --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 4fc0079..82ab719 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,11 @@ If you'd like it to always show a message after each command, you can define a c export PROMPT_COMMAND="mommy \\$\\(exit \$?\\); $PROMPT_COMMAND" ``` +if that doesn't work for you, try: +``` +export PS1="\$(mommy \$\(exit \$?\))$PS1" +``` + ## Configuration The `mommy` function has several customizable options that can be set using environment variables: