从命令行,长目录路径可以占据整行:
也有人问过类似的问题:
采取的步骤:
/etc/bash.bashrc
sudo gedit bash.bashrc
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\ W \$ '
bashrc
bashrc ×1