#显示当前使用的PS1样式 echo $PS1 vi /etc/profile.d/env.sh PS1="[\[\e[1;41;33m\]\u@\h \t\w]\$\e[0m\]" source /etc/profile.d/env.sh #在/etc/profile.d目录下新建myshell.sh ===========myshell.sh====================================================================== HISTSIZE=10000 PS1="\[\e[37;40m\][\[\e[32;40m\]\u\[\e[37;40m\]@\h \[\e[35;40m\]\W\[\e[0m\]]\\$ " HISTTIMEFORMAT="%F %T $(whoami) " alias l='ls -AFhlt' alias lh='l | head' alias vi=vim GREP_OPTIONS="--color=auto" alias grep='grep --color' alias egrep='egrep --color' alias fgrep='fgrep --color' ================================================================================= source /etc/profile.d/myshell.sh


fffffasdfasdfasdfasdfas;kdfjlaskl;dfjaskl;dfjakls;dfjkal;sfdjlaks;df als;dfj awkls;dfj asl;dfj aslk;dfjaskl;dfjas;ldf
访客评论