# My Setting if [ -n "$BASH" ] then export IS_CONSOLE=`tty | sed 's/^\/dev\/\(vc\)\/.*$/\1/g'` alias cp='cp -i' alias mv='mv -i' alias rm='rm -i' alias ls='ls --color=auto --show-control-chars -p' alias grep='grep --color=auto' alias ssh='ssh -e none -C' alias wget='wget -c' alias unzip='unzip -O CP949' alias unzipj='unzip -O SJIS-WIN' alias quickpkg='quickpkg --include-config=y --include-unmodified-config=y' if [ ! -z $DISPLAY ] then alias vi='gvim' fi if [ `/usr/bin/whoami` = 'root' ] then export PS1_COLOR='31m\]' alias emerge='emerge -v' alias ntpclockset='ntpclockset 203.248.240.103' else export PS1_COLOR='32m\]\u@' fi to_kr () { export LANG=ko_KR.EUC-KR export LC_ALL=ko_KR.EUC-KR case "$TERM" in xterm* | gnome* | screen) export PS1="\[\033[01;${PS1_COLOR}\h \[\033[01;34m\]\W \\$ \[\033[00m\]\[\033]0;KR \u@\h:\w\007" ;; *) export PS1="\[\033[01;${PS1_COLOR}KR \h \[\033[01;34m\]\W \\$ \[\033[00m\]" ;; esac if [ "${IS_CONSOLE}" == 'vc' ] then jfbterm to_c fi } to_utf () { export LANG=ko_KR.UTF-8 export LC_ALL=ko_KR.UTF-8 case "$TERM" in xterm* | gnome* | screen) export PS1="\[\033[01;${PS1_COLOR}\h \[\033[01;34m\]\W \\$ \[\033[00m\]\[\033]0;UTF \u@\h:\w\007" ;; *) export PS1="\[\033[01;${PS1_COLOR}UTF \h \[\033[01;34m\]\W \\$ \[\033[00m\]" ;; esac if [ "${IS_CONSOLE}" == 'vc' ] then jfbterm to_c fi } to_jp () { export LANG=ja_JP.UTF-8 export LC_ALL=ja_JP.UTF-8 case "$TERM" in xterm* | gnome* | screen) export PS1="\[\033[01;${PS1_COLOR}\h \[\033[01;34m\]\W \\$ \[\033[00m\]\[\033]0;JP \u@\h:\w\007" ;; *) export PS1="\[\033[01;${PS1_COLOR}JP \h \[\033[01;34m\]\W \\$ \[\033[00m\]" ;; esac } to_c () { unset LANG unset LC_ALL case "$TERM" in xterm* | gnome* | screen) export PS1="\[\033[01;${PS1_COLOR}\h \[\033[01;34m\]\W \\$ \[\033[00m\]\[\033]0;\u@\h:\w\007" ;; *) export PS1="\[\033[01;${PS1_COLOR}\h \[\033[01;34m\]\W \\$ \[\033[00m\]" ;; esac } case $TERM in xterm* | gnome* | screen) case $TERM in *KR) to_kr ;; *) to_utf ;; esac #export TERM=${TERM:0:5} #export TERM=xterm esac fi