xmzk-PS1.sh
#!/usr/bin/env bash sed -i 's/# StrictHostKeyChecking ask/StrictHostKeyChecking no/' /etc/ssh/ssh_config echo "PS1='\[\e[35;1m\][\u@\h \W \t]\\$\[\e[m\]'" >> /etc/profile
echo "HISTTIMEFORMAT="%F %T " >> /etc/profile
source /etc/profile
效果: