解決ubuntu終端顯示路徑太長問題
sudo vim ~/.bashrc
找到這樣的文字
if [ "$color_prompt " = yes ]; then
PS1 ='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \[\033[00m\]\$ '
else
PS1 ='${debian_chroot:+($debian_chroot)}\u@\h:\w \$ '
可以將小寫的’w’換成’W’,可以將’w’去掉顯示