恩,作为笔记系列的文章,内容会比较混乱.
这段时间以来,作为Ubuntu双十版的小白鼠,虽然挂彩数次,不过也在 @yegle @tjmao @poplarch @BOYPT @liangsuilong @jimmy_xu_wrk 等等推友的帮助下搞定重生.
以下是这段时间来发现的好东西:
1, @tualatrix 大大的notify脚本(Felix降碳版)
1 2 3 4 5 6 7 8 |
#!/bin/bash # Copyright: TualatriX GPL v3 # Website: http://imtx.cn/archives/1516.html # Please add the following line to ~/.bashrc to enable the bash completion support # complete -o filenames -F _root_command notify $* && \ notify-send "\"$*\" finished successfully" || \ notify-send "\"$*\" failed" |
并在 ~/.bashrc 里加入:
1 |
complete -o filenames -F _root_command notify |
以适应bash的自动完成功能. 原文在此
这玩意着实好用, 不过本猫发现10.04及以上版本会出现找不到notify-send命令,这时只需要
1 |
# apt-get install libnotify-bin |