Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Prompt truncating, redux



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Jul 1, 2006, at 2:25 PM, Bart Schaefer wrote:

On Jul 1, 11:35am, Timothy Stone wrote:
}
} I figured out the expectations of zsh v. tcsh, save "set ellipsis"...
} zsh seems to be able to do this, but I can't sort out the syntax
} using '%<...<%/'


What you appear to want is conditional syntax, not truncation syntax:

	%4(c:...:)%3c

will show elipses if %c is at least 4 path elements long, nothing if it
is less than 4 elements long, followed by the last 3 elements of %c.

Perfect! Thank you. The `zsh' community is fantastic!

Tim

- --
Timothy Stone   |    www dot petmystone dot com
Rising Sun, MD  |  tstone at petmystone dot com

"This Satan's drink [coffee] is so delicious...
 we shall cheat Satan by baptizing it."
 Pope Clement VIII (1592-1605)


- --
Timothy Stone   |    www dot petmystone dot com
Rising Sun, MD  |  tstone at petmystone dot com

"This Satan's drink [coffee] is so delicious...
 we shall cheat Satan by baptizing it."
 Pope Clement VIII (1592-1605)


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEp9polNb2aYI3YNkRAtVOAJ9d3h0P1ukkDygu6JsRYYppgO6zRwCfTEYP
emdb87gPYd3QimO6wnOfRE4=
=BFNV
-----END PGP SIGNATURE-----



Messages sorted by: Reverse Date, Date, Thread, Author