Adding failcount script for competitive CLI

This commit is contained in:
DarkFeather
2018-12-11 17:42:00 -06:00
parent 30c6c5791b
commit deac12d010
2 changed files with 6 additions and 1 deletions

5
Shared/failcount Executable file
View File

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