Colorful Terminal April 21, 2013 Outline 1. 漂漂終端機懶人包1.0.1. [Mac] vi ~/.bash_profile 加入以下幾行1.0.2. [Ubuntu] gedit ~/.bashrc 加入以下幾行1.0.3. Reference 漂漂終端機懶人包 [Mac] vi ~/.bash_profile 加入以下幾行 1234567891011# Change promptPS1_OLD=${PS1}export PS1="[\[\033[0;32m\]\w\[\033[0m\]] $ "#enables color in the terminal bash shellexport CLICOLOR=1#sets up the color scheme for listexport LSCOLORS=ExFxCxDxBxegedabagacad#enables color for iTerm#export TERM=xterm-colorexport TERM=xterm-256color#sets up proper alias c [Ubuntu] gedit ~/.bashrc 加入以下幾行 123456789101112force_color_prompt=yes #打開註解...if [ "$color_prompt" = yes ]; then #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' PS1="[\[\033[0;32m\]\w\[\033[0m\]] $ "else #PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' PS1="[\[\033[0;32m\]\w\[\033[0m\]] $ "fi... 別把裡面其他東西給刪囉 Reference http://blog.taylormcgann.com/2012/06/13/customize-your-shell-command-prompt/ http://www.wretch.cc/blog/thewindjuei/21313506 Newer Hadoop 第一次安裝就上手 CDH3 Older Push git onto Github