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

效果:

 

posted @ 2016-09-29 16:36  snale1989  阅读(258)  评论(0编辑  收藏  举报