vim ~/.bashrc
加入ip=`/sbin/ifconfig|egrep -A 1 'eth0\s|eth1\s'| grep inet| awk '{print $2}' | sed ...
linux PS1环境变量个性化设置