浏览代码

Do notify about sleeping

Alois Mahdal 4 年前
父节点
当前提交
0d854d68d5
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      dotfiles/bash/main.bashrc

+ 1
- 0
dotfiles/bash/main.bashrc 查看文件

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
 }