\[\e[1;35m\][\u@\h \W]\$\[\e[0m\]
\[\e[1;5;41;33m\][\u@\h \W]\\$\[\e[0m\]
"\[\e[1;32m\][\t \[\e[1;33m\]\u\[\e[35m\]@\h\[\e[1;31m\] \W\[\e[1;32m\]]\ [\e[0m\]\\$
#!/bin/bash
echo "修改rm别名"
echo "alias rm='DIR=/data/bakup\`date +%F_%T\`;mkdir \$DIR;mv -t \$DIR'" >>~/.bashrc
. ~/.bashrc
echo "修改PS1"
echo 'PS1="\[\e[1;34m\][\u@\h \W]\\$\[\e[0m\]"' >/etc/profile.d/ps1.sh
source /etc/profile.d/ps1.sh