From command line, long directory paths can take up the entire line:
Similar questions have been asked:
- Hides directory path in terminal
- Remove "PWD" from terminal
- Remove full path from terminal
- Show only current directory name on bash prompt
Steps taken:
- Locate the .bashrc file in Debian
/etc/bash.bashrc
- From /etc directory in terminal:
sudo gedit bash.bashrc
- Find the line:
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
- Change lowercase 'w' to an uppercase 'W' (in bold):
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\ W\$ '
- Save (as sudo) and reload the .bashrc file solves the problem temporarily but not in new terminal window. The colors change, too (the green and blue gets knocked out and all text turns white)