让每次git提交都有欢呼声

2356阅读 0评论2012-10-07 
分类:LINUX

在 .git/hooks/ 里建立文件 post-commit,并赋予可执行权限,拷贝一个声音文件到 .git 中
实现如下:

$ vim .git/hooks/post-commit
$ chmod +x .git/hooks/post-commit # 内容如下
#!/bin/sh
mplayer .git/sound_file > /dev/null 2>&1 &

上一篇:vim-instant-markdown --- 实时预览
下一篇:github readme.md 添加图片