sudofox / shell-mommy

Mommy is here for you on the command line ~ ❤️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PROMPT_COMMAND support

f1urps opened this issue · comments

Hi, nice project!

I wanted to let you know there's a way to integrate with PROMPT_COMMAND without any changes to the script.

in .bashrc:

source /path/to/mommy.sh
export PROMPT_COMMAND="mommy \\$\\(exit \$?\\); $PROMPT_COMMAND"

You could add this note in the Readme to let users know.

Just tested -- that works great, thanks!

repo maintainer is so proud of you!!