Browse Source

Add nn(), like bb() but with a memo hint

Alois Mahdal 5 years ago
parent
commit
40e5955c38
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      dotfiles/bash/main.bashrc

+ 10
- 0
dotfiles/bash/main.bashrc View File

@@ -22,6 +22,16 @@ bb() {
22 22
     printf '\a'
23 23
 }
24 24
 
25
+nn() {
26
+    #
27
+    # Ring the bell and send notification $1
28
+    #
29
+    local msg=${1:-this is done}
30
+    bb
31
+    echo -e "hey, \033[1;31m$msg\033[1;0m!"
32
+    notify-send -a 'nn()' "hey, $msg"
33
+}
34
+
25 35
 dt() {
26 36
     #
27 37
     # Open $1 new terminals