diff options
Diffstat (limited to 'bin/unix/timer.sh')
-rwxr-xr-x | bin/unix/timer.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/unix/timer.sh b/bin/unix/timer.sh index b4f48c5..b7f941e 100755 --- a/bin/unix/timer.sh +++ b/bin/unix/timer.sh | |||
@@ -8,6 +8,8 @@ SIGNAL=${1:-SIGTERM} | |||
8 | COMMAND_START="$2" | 8 | COMMAND_START="$2" |
9 | COMMAND_EXIT="$3" | 9 | COMMAND_EXIT="$3" |
10 | 10 | ||
11 | [ -n "$COLOR" ] && echo -en "\e[${COLOR}m" | ||
12 | |||
11 | # If SIGNAL is received, switch to next display | 13 | # If SIGNAL is received, switch to next display |
12 | trap 'next_display' "$SIGNAL" | 14 | trap 'next_display' "$SIGNAL" |
13 | # Use SIGTSTP (Ctrl-Z in most of the cases) to stop/restart timer | 15 | # Use SIGTSTP (Ctrl-Z in most of the cases) to stop/restart timer |