Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!mit-eddie!mintaka!ogicse!ucsd!ucsdhub!hp-sdd!hplabs!hp-ses!hpcuhb!hpda!hpcuhc!hpsemc!jmorris From: jmorris@hpsemc.HP.COM (John V. Morris) Newsgroups: comp.sys.hp Subject: Re: CI.STK history function Message-ID: <1250034@hpsemc.HP.COM> Date: 21 Feb 90 18:21:15 GMT References: <1990Feb19.235123.5458@sjuphil.uucp> Organization: HP Technology Access Center, Cupertino, CA Lines: 16 With csh, you can simulate CI's / and // commands by adding the following statements to your .cshrc file. ----------------------------------- set history = 20 alias / 'history -h \!*; line>/dev/null; /bin/echo "\033J\033R\033A\033d\021\c"' alias // 'history -h 2 | head -1; /bin/echo "\033A\c"; line > /dev/null; /bin/echo "\033J\033R\033A\033d\021\c"' -------------------------------------- I don't think it would be difficult to translate these into equivalent commands for sh or ksh. John Morris HP VAB Partners Lab