終端提示符自定義:
if [ "$color_prompt" = yes ]; thenPS1='\[\033[01;34m\][\t]\[\033[00m\]\n${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\[\033[00m\]:[\[\033[01;34m\]\W\a\[\033[00m\]]\$ '
else
PS1='[\[\033[01;34m\]\t\[\033[00m\]]\n${debian_chroot:+($debian_chroot)}\u@:[\[\033[01;34m\]\W\a\[\033[00m\]]\$ '
fi
效果:
[09:47:37]
user@:[dir]$
終端字體顏色:
#609165