浏览代码

Pass delay from nn() to bb()

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

+ 3
- 2
dotfiles/bash/main.bashrc 查看文件

@@ -51,10 +51,11 @@ bb() {
51 51
 
52 52
 nn() {
53 53
     #
54
-    # Ring the bell and send notification $1
54
+    # Ring the bell and send notification $1 after $2 time
55 55
     #
56 56
     local msg=${1:-this is done}
57
-    bb
57
+    local stime=$2
58
+    bb "$stime"
58 59
     echo -e "hey, \033[1;31m$msg\033[1;0m!"
59 60
     notify-send -a 'nn()' "hey, $msg"
60 61
 }