2014年10月16日星期四

Set Color for Your Terminal


Get bored with you black and white OS Terminal?


Here are some quick way to color it ^ ^

cd ~ //go to your home directory
ls -a // then you can find one .bash_profile
vim .bash_profile //
// add the following line in you .bash_profile
//if you want a Terminal with white back and dark text, just like me

exportCLICOLOR=1
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export LSCOLORS=ExFxBxDxCxegedabagacad

alias ls='ls -GFh'

1.  type esc
2.  :x
//line one and line 2 to exit vim and save file.
// wo hoo then you get the fi


for details ,please visit: http://osxdaily.com/2013/02/05/improve-terminal-appearance-mac-os-x/

Another exciting finding, at least to me, I want to share is how to set color on vim. 

just two single line of code:

cd ~ //go back to you home directory

vim .vimrc // you may or may not have it , do not worry vim will make it for you

//write the following line in the file

set number // which will give you the number of line
syntax on // which will set color


That's it.

// Just write a new python file and see