3
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?
possible duplicate: http://superuser.com/questions/60555/show-only-current-directory-name-not-full-path-on-bash-prompt
– quack quixote – 2010-03-30T03:14:43.377