
|
84782 packages online
|
|
 |
|
util/cli/promptpath.lha |
|
No screenshot available
|
Short: | Shortens shellprompts in a sensible way |
Author: | sysop sweetdreams.lahn.de (Matthias Bethke) |
Uploader: | sysop sweetdreams lahn de (Matthias Bethke) |
Type: | util/cli |
Version: | 37.2 |
Architecture: | m68k-amigaos |
Date: | 1996-10-31 |
Requires: | AmigaOS 2.04 |
Download: | util/cli/promptpath.lha - View contents | Readme: | util/cli/promptpath.readme |
Downloads: | 488 |
|
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.01 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |