Adding failcount script for competitive CLI
This commit is contained in:
5
Shared/failcount
Executable file
5
Shared/failcount
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
/bin/bash --rcfile <(cat /etc/bashrc; echo '
|
||||
export PS1="FAILCOUNT: \$failcount ""$PS1"
|
||||
trap '\''export failcount=$(( $failcount + $? ))'\'' DEBUG
|
||||
')
|
Reference in New Issue
Block a user