ソースを参照

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
 }