How to shorten the no of characters display for the current directory in the prompt
Posted
by michael
on Super User
See other posts from Super User
or by michael
Published on 2010-03-30T00:54:16Z
Indexed on
2010/03/30
1:03 UTC
Read the original article
Hit count: 704
Hi,
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?
© Super User or respective owner