ShadowArch/UserScripts/failcount

6 lines
162 B
Plaintext
Raw Permalink Normal View History

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