Short: CD replacement (wildcards, window title) Author: soenke@vapor.com (Sönke Tesch) Uploader: soenke@vapor.com Type: util/dir Replaces: util/dir/TitleCD.lha Keywords: CD Modula-2 Interface: Shell CLI TitleCD is a replacement for the original CD shell command. I wasn`t that happy with the way the Shell usually displays the current directory because it simply resulted in annoying long prompts of 1/2 to 2/3 times of the window width. On the other hand the window title is unused - the solution could not be easier (btw: my replacement was in fact smaller than C=s` original..:). The whole thing has been extended with wildcard support, an argument that speeds up changing between the current and the last directory ("cd lastdir" instead of "cd sys:bla/blo/ble/bli") and writing/reading the directory to or from a file. Installation ============ Only 3 steps - couldn`t be easier: a) copy TitleCD to c:cd b) add the line resident cd remove to your s:user-startup c) reboot That`s it :) If you want you can make TitleCD resident but this is IMHO not necessary unless you`re using a floppy-disc-based system. You will not notice the difference with harddisks. How to use ========== TitleCD DIR,TO/K,FROM/K,LASTDIR/S,NOTITLE/S DIR New current directory - same as in the original but TitleCD also supports wildcards e.g. "cd sys:#?/pri#?" will most likely cd to "sys:devs/printers". The first matching directory is choosed. TO/K If given TitleCD writes the name of the current directory to this file. No newline is appended! To print the name into the shell window use "cd to console:". FROM/K If given TitleCD reads the name of the new current directory from this file. LASTDIR/S If set TitleCD switches back to the last current directory. Example: 1.ram:env/system/EggPaint> cd sys:graphics/EggPaint 1.sys:graphics/EggPaint> cd lastdir 1.ram:env/system/EggPaint> NOTITLE/S If set the title of the Shell window is not changed. Environment Variables ===================== TitleCD uses sets/uses two local variables: LastDir - the name of the last current directory CurrentDir - the name of the current current directory LastDir is actually used for the LASTDIR argument. You can use set and get to access these (see AmigaDOS manual). Copyright ========= TitleCD, TitleCD.readme and TitleCD.doc: Copyright 1993-1997 by Sönke Tesch All Rights Reserved. You may re-distribute the archive as long as no file is removed or changed. Find has to be distributed for FREE, any other kind of distribution without my written permission is not allowed. However, this is not the case for any AmiNet-CD. Others please feel free to ask. I do not give any guarantee for the quality and usefulness of Find nor that it works as described or fits particular needs. Contact ======= Comments, suggestions, bug-reports and Hey-I-use-it!-mails are always welcome! Just write to . Those finer details.. ===================== TitleCD is written using Cyclone Modula-2 by Marcel Timmermans. The source is available on request, just ask. History ======= Actually none written :) The first version was born somewhere back in 1993, the current version 3 contains actually 100% new code. Have fun, soenke (06-Aug-97) -- Amiga Translators Organization * Main & German Admin, Ex-Human Listserver ato : ato-admin-de@ato.vapor.com & ato-admin@ato.vapor.com private: soenke@vapor.com