1. create ~/.bash_profile and ~/.bashrc
I mainly use .bashrc but there are some programs will use .bash_profile.
Therefore, I also create .bash_profile and the only functionality of .bash_profile
is redirecting to .bashrc.
Here is the .bash_porfile
# use bashre
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
(1) use 256 colors
# turn on color for terminal
export CLICOLOR=1
export TERM=xterm-256color
(2) language setting
# add language setting
export LANG=zh_TW.UTF-8
export LC_ALL=en_US.UTF-8
(3) alias
# alias
alias ll="ls -al"
沒有留言:
張貼留言