ubuntu 终端里显示路径名称太长,怎么设置变短(Ubuntu 21.04)
vim /home/test/.bashrc
修改
60 PS1='KaTeX parse error: Expected '}', got 'EOF' at end of input: …ebian_chroot:+(debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\W[\033[00m]$ ’
61 else
62 PS1='KaTeX parse error: Expected '}', got 'EOF' at end of input: …ebian_chroot:+(debian_chroot)}\u@\h:\W$ ’
将小写’w’改为大写’W’
source /home/test/.bashrc