修改shell的提示符添加上时间显示

发布时间 2023-12-28 14:43:31作者: 叕叒双又

修改.bashrc文件即可

#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\][\A @\h]\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$'

  source .bashrc即可