ShadowArch/Shared/failcount
2018-12-11 17:42:00 -06:00

6 lines
162 B
Bash
Executable File

#!/bin/bash
/bin/bash --rcfile <(cat /etc/bashrc; echo '
export PS1="FAILCOUNT: \$failcount ""$PS1"
trap '\''export failcount=$(( $failcount + $? ))'\'' DEBUG
')