标签:style http color sp on div bs ad ef
case "$TERM" inxterm-color) color_prompt=yes;;esac
改成
case "$TERM" inxterm|xterm-color) color_prompt=yes;;esac
if [ "$color_prompt" = yes ]; thenPS1=‘${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ‘elsePS1=‘${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ‘
改成
if [ "$color_prompt" = yes ]; thenPS1=‘${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\n\$ ‘elsePS1=‘${debian_chroot:+($debian_chroot)}\u@\h:\w\n\$ ‘
标签:style http color sp on div bs ad ef
原文地址:http://www.cnblogs.com/joyzhuang/p/4132045.html