Paul Jarc wrote:
Matthew Woehlke wrote:
Actually, a feature that would be REALLY helpful is a way to specify
certain directory strings that should be abbreviated.
PS1='...$(mypath)...'
mypath() {
case $PWD/ in
/usr/local/src/kde/svn/trunk/*)
printf %s "${PWD/#\/usr\/local\/src\/kd
Matthew Woehlke wrote:
> Actually, a feature that would be REALLY helpful is a way to specify
> certain directory strings that should be abbreviated.
PS1='...$(mypath)...'
mypath() {
case $PWD/ in
/usr/local/src/kde/svn/trunk/*)
printf %s "${PWD/#\/usr\/local\/src\/kde\/svn\/trunk/\$s
Matthew Woehlke wrote:
> Actually, a feature that would be REALLY helpful is a way to specify
> certain directory strings that should be abbreviated. For example, I
> build KDE from sources, with source in /usr/local/src/kde/svn/trunk and
> build objects in /var/local/build/kde/svn/trunk. It would
Dan Nicolaescu wrote:
Dan Nicolaescu writes:
> In tcsh %c can be used to only show the last few directory names in a
> path (also see the ellipsis variable).
>
> For example for this directory:
>
> /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/char/hw_random/
>
> the promp
On Wed, Jan 14, 2009 at 9:56 AM, Dan Nicolaescu wrote:
> Dan Nicolaescu writes:
>
> > In tcsh %c can be used to only show the last few directory names in a
> > path (also see the ellipsis variable).
> >
> > For example for this directory:
> >
> > /lib/modules/2.6.21-1.3194.fc7/kernel/drive
Dan Nicolaescu writes:
> In tcsh %c can be used to only show the last few directory names in a
> path (also see the ellipsis variable).
>
> For example for this directory:
>
> /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/char/hw_random/
>
> the prompt can look like this:
Stephane Chazelas <[EMAIL PROTECTED]> writes:
> On Thu, Nov 01, 2007 at 08:01:58AM -0700, Dan Nicolaescu wrote:
> >
> > In tcsh %c can be used to only show the last few directory names in a
> > path (also see the ellipsis variable).
> >
> > For example for this directory:
> >
On Thu, Nov 01, 2007 at 08:01:58AM -0700, Dan Nicolaescu wrote:
>
> In tcsh %c can be used to only show the last few directory names in a
> path (also see the ellipsis variable).
>
> For example for this directory:
>
> /lib/modules/2.6.21-1.3194.fc7/kernel/drivers/char/hw_random/
>
> the pro
In tcsh %c can be used to only show the last few directory names in a
path (also see the ellipsis variable).
For example for this directory:
/lib/modules/2.6.21-1.3194.fc7/kernel/drivers/char/hw_random/
the prompt can look like this:
[EMAIL PROTECTED]:...drivers/char/hw_random>
when using