浏览代码

Use BASHUM_COLOR_* globals for color codes

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

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

56
     local msg=${1:-this is done}
56
     local msg=${1:-this is done}
57
     local stime=$2
57
     local stime=$2
58
     bb "$stime"
58
     bb "$stime"
59
-    echo -e "hey, \033[1;31m$msg\033[1;0m!"
59
+    echo -e "hey, $BASHUM_COLOR_LRED$msg$BASHUM_COLOR_NORMAL"
60
     notify-send -a 'nn()' "hey, $msg"
60
     notify-send -a 'nn()' "hey, $msg"
61
 }
61
 }
62
 
62