PROMPT_COMMAND support
f1urps opened this issue · comments
Vivian Cox commented
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.
Austin Burk commented
Just tested -- that works great, thanks!
repo maintainer is so proud of you!!