  | 85255 packages online |
|
 |
| util/cli/promptpath.lha | | | | No screenshot available |
|
If you have a lot of nested directories on your HD, shellprompts of the
usual form "%n:%s>" become quite long, leaving little room on the
commandline. This program can be inserted in the promt line and shortens
the path in a more sensible way then the frequently suggested "echo `cd`
len x". Besides it's shorter 'n faster :-) (can also be made resident)
A path like
Work:this/is/a/very/long/subdir/path
will be shortened to
Work://////path
if it exceeds the desired promplength (one slash for every subdir plus the
full name of the last component)
To try it out, you can start it like any CLI program, as the only paramater
it takes the desired length of the prompt. The last path component will
always be displayed, even if the resulting string is longer than the number
of characters you specified.
To insert it in your prompt, use the following command in your
shell-startup:
prompt "%n:*`promptpath <length>*`>" (replacing <length> with a number of
course)
As the program is executed each time the shell displays a new prompt,
making it resident is definitely a Good Thing(tm) :-)
|
Contents of util/cli/promptpath.lha PERMSSN UID GID PACKED SIZE RATIO CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic] 316 344 91.9% -lh5- 0305 Oct 30 1996 promptpath
[generic] 707 1326 53.3% -lh5- a410 Oct 30 1996 promptpath.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 2 files 1023 1670 61.3% Oct 31 1996
|
|
|
 |
| Page generated in 0.03 seconds |
Aminet © 1992-2026 Urban
Müller and
the Aminet team.
Aminet contact address: <aminet aminet net> |
| Try new and exciting server! |