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 Requires: AmigaOS 2.04 Architecture: m68k-amigaos 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 *`>" (replacing 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) :-)