commit 36951e312d6226bb21cf87a7a38f7f8c41c22420 parent 96ff9d06b711eb875909656f7a8bfaf0a8b3a0ed Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe> Date: Mon, 3 Jun 2024 19:01:23 -0500 bash: removed countdown and stopwatch functions Diffstat:
| M | .bashrc | | | 18 | ------------------ |
1 file changed, 0 insertions(+), 18 deletions(-)
diff --git a/.bashrc b/.bashrc @@ -69,24 +69,6 @@ git() { fi } -countdown() { - start="$(($(date '+%s') + $1))" - while [ "${start}" -ge "$(date +%s || true)" ]; do - time="$((start - $(date +%s)))" - printf '%s\r' "$(date -u -d "@${time}" +%H:%M:%S || true)" - sleep 0.1 - done -} - -stopwatch() { - start=$(date +%s) - while true; do - time="$(($(date +%s) - start))" - printf '%s\r' "$(date -u -d "@${time}" +%H:%M:%S || true)" - sleep 0.1 - done -} - # shellcheck disable=SC2016 PROMPT_COMMAND+=( '{ [ -z "$TMUX" ] && [[ $TERM != tmux-* ]] && [ "$ASCIINEMA_REC" != 1 ] && [ -n "$DISPLAY" -o -n "$TERMUX_VERSION" -o -n "$MSYSTEM" ]; } && { [ -z "$FIRST_COMMAND" ] && FIRST_COMMAND=1 || exit; }'