2016年9月22日 星期四

[MAC] Bash Configuration

environment : MacBook Pro @ OS X EL Capitan Version 10.11.6

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

2. Some configurations of ~/.bashrc

(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"

沒有留言:

張貼留言