本文最后更新于28 天前,其中的信息可能已经过时,如有错误请发送邮件到big_fw@foxmail.com
第一步:vim ~/.bashrc
编辑成:
.bashrc
User specific aliases and functions
alias rm=’rm -i’
alias egrep=’egrep –color=auto’
alias fgrep=’fgrep –color=auto’
alias grep=’grep –color=auto’
alias la=’ls -lAh’
alias ll=’ls -lh’
alias ls=’ls –color=auto’
alias cp=’cp -i’
alias mv=’mv -i’
alias cdnet=’cd /etc/sysconfig/network-scripts/’
Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [ $(id -u) -eq 0 ]; then
export PS1='[[\e[0;32;40m]\u[\e[0;37;40m]@\h: [\e[0;35;40m]\w[\e[m]]# ‘
else
export PS1='[[\e[0;34;40m]\u[\e[0;37;40m]@\h: [\e[0;35;40m]\w[\e[m]]$ ‘
fi
export LANG=zh_CN.UTF-8
export LANGUAGE=zh_CN:zh
export LC_ALL=zh_CN.UTF-8
退出后
第二步:
source ~/.bashrc
第三步:
locale