Explorar el Código

Do notify about sleeping

Alois Mahdal hace 5 años
padre
commit
0d854d68d5
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      dotfiles/bash/main.bashrc

+ 1
- 0
dotfiles/bash/main.bashrc Ver fichero

45
     # Ring the bell
45
     # Ring the bell
46
     #
46
     #
47
     local stime=${1:-0}
47
     local stime=${1:-0}
48
+    test "$stime" == 0 || echo -e "sleeping for $BASHUM_COLOR_LGREEN$stime$BASHUM_COLOR_NORMAL"
48
     sleep "$stime"
49
     sleep "$stime"
49
     printf '\a'
50
     printf '\a'
50
 }
51
 }