linux命令提示符设置

变成绿色

[root@localhost /usr/local]#vim /root/.bashrc

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
export PS1='\[\e[32;1m\][\u@\h \w]\n#\[\e[m\]'

 

posted on 2018-05-22 17:59  江湖小女生  阅读(123)  评论(0编辑  收藏  举报

导航