ubuntu 12.10 enable color support of ls and also add handy aliases

~/.bashrc 这个文件中有

# enable color support of ls and also add handy aliases
#if [ -x /usr/bin/dircolors ]; then
#   test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
#   alias ls='ls --color=auto'
#   #alias dir='dir --color=auto'
#   #alias vdir='vdir --color=auto'

#   alias grep='grep --color=auto'
#   alias fgrep='fgrep --color=auto'
#   alias egrep='egrep --color=auto'
#fi

这么一段,本来是没有注释的,但是发现它并没有被读取, source ~/.bashrc 后是有效过果的。于是把它注释掉,copy到~/.bash_profile即可。

posted @ 2013-03-18 15:17  jzlikewei  阅读(256)  评论(0编辑  收藏  举报