2011年8月7日 星期日

[Mac]備份我Mac的.bash_profile

色碼控制
http://bbs3.nsysu.edu.tw/txtVersion/treasure/mis93tech/M.1002334522.A/M.1002337167.C.html

#enables color in the terminal bash shell

export CLICOLOR=1

#sets up the color scheme for list

export LSCOLORS=ExFxCxDxBxegedabagacad

#function EXT_COLOR () { echo -ne "\033[38;5;$1m"; }

#export LS_COLORS='di=38;5;108:fi=00:*svn-commit.tmp=31:ln=38;5;116:ex=38;5;186'

#sets up the prompt color (currently a green similar to linux terminal)

#export PS1='\[33[01;33m\]\u\[33[0m\]@\h\[33[00m\]:\[33[01;34m\]\w\[33[01;32m\]$\[33[0m\]\$'
#export PS1='\[33[01;32m\]\u@\h\[33[00m\]:\[33[01;36m\]\w\[33[00m\]\$'
#export PS1='`EXT_COLOR 187`\u@\h`EXT_COLOR 174` \w \$\[\033[00m\] > '
export PS1="\e[1;32m\u@\h\W$ \e[m"
#enables color for iTerm

export TERM=xterm-color

#sets up proper alias commands when called

alias ls='ls -vG'

沒有留言:

張貼留言