I am using bash, and in my .basrhrc: I have the following which defined how my prompt looks:
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\w\[\033[00m\]:\[\033[01;34m\]\!:\#\[\033[00m\]\$ '
I think the \w display the current path of the shell.
Is there any way to limit the number of character used to display the current path of the shell?