在 ~/.bashrc 我有
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
相反为什么不能
PS1='${debian_chroot}\u@\h:\w\$ '
它会完成同样的事情。不是吗?
bash shell-script
bash ×1
shell-script ×1