'2009/01'에 해당되는 글 1건

  1. Mac OS X terminal settings 2009/01/05

Mac OS X terminal settings

from Misc 2009/01/05 01:14

출처: http://www.simplething.net/2007/02/-mac-os-x.html

다음 명령어로 .profile 파일을 만든다.

vi ~/.profile

다음 내용을 추가한다.

export LC_CTYPE=en_US.UTF-8
export TERM="xterm-color"
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad

PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] "

export PATH="/bin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
stty erase ^H
alias ls="ls -v"

한글 사용을 위해 다음 명령어로 .inputrc 파일을 만든다.

vi ~/.inputrc

다음 내용을 추가한다.

set meta-flag on
set input-meta on
set output-meta on
set convert-meta off

"\e[3~": delete-char

아래와 같이 명령어를 실행한다.

source ~/.profile
bind -f ~/.inputrc

2009/01/05 01:14 2009/01/05 01:14