dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit e964289b3394a00603bb4a1965cd2c13f0326db5
parent 1cf8d402bacdae5132da87d697177e0b241bbd97
Author: Chris Bracken <cbracken@shachi.(none)>
Date:   Sat, 20 Oct 2012 13:15:13 -0700

Add colour for less

Diffstat:
M.bashrc | 5+++++
A.colors | 10++++++++++
M.zshrc | 8+++++++-
3 files changed, 22 insertions(+), 1 deletion(-)

diff --git a/.bashrc b/.bashrc @@ -66,9 +66,14 @@ xterm*|rxvt*) ;; esac +# aliases if [ -f ~/.aliases ]; then . ~/.aliases fi +# color +if [ -f ~/.colors ]; then + . ~/.colors +fi # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile diff --git a/.colors b/.colors @@ -0,0 +1,10 @@ +# .colors + +# color support for less +export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking +export LESS_TERMCAP_md=$'\E[01;31m' # begin bold +export LESS_TERMCAP_me=$'\E[0m' # end mode +export LESS_TERMCAP_se=$'\E[0m' # end standout-mode +export LESS_TERMCAP_so=$'\E[01;44;33m' # begin standout-mode - info box +export LESS_TERMCAP_ue=$'\E[0m' # end underline +export LESS_TERMCAP_us=$'\E[01;32m' # begin underline diff --git a/.zshrc b/.zshrc @@ -1,3 +1,5 @@ +# .zshrc + # history HISTFILE=~/.histfile HISTSIZE=1000 @@ -38,8 +40,12 @@ else fi unset color_prompt force_color_prompt -# Aliases +# aliases if [ -f ~/.aliases ]; then . ~/.aliases fi +# color +if [ -f ~/.colors ]; then + . ~/.colors +fi