ShadowArch/Shared/failcount

6 lines
162 B
Plaintext
Raw Normal View History

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