2011年6月13日 星期一

Git config tips

我的 Git 偏好設定,除了常用的ui all auto true,直接在CLI前顯示branch name的功能也非常實用方便。

How to define ESC char in git?,git log , git grep 等輸出時無法顯示顏色,在stack overflow終於找到解說與解法

core.pager=less -XRMSI
相關解說,Git Configuration@Pro Git

Bash color tips

調教Bash color時參考的筆記

http://ubuntulife.wordpress.com/2011/04/10/los-codigos-de-color-en-bash/ 對照圖點醒我 /ECS就是/033 這點

http://www.tux-planet.fr/les-codes-de-couleurs-en-bash/

http://www.marksanborn.net/linux/adding-color-and-customize-the-bash-prompt-ps1/ 更多詳細的解說