Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!cornell!batcomputer!sun.soe.clarkson.edu!rpi!rpics!kyriazis From: kyriazis@rpics (George Kyriazis) Newsgroups: comp.unix.questions Subject: Re: history tricks... Keywords: history, vms up-arrow Message-ID: <71@rpi.edu> Date: 5 Jan 89 04:26:33 GMT References: <945@cmx.npac.syr.edu> Sender: usenet@rpi.edu Reply-To: kyriazis@turing.cs.rpi.edu (George Kyriazis) Organization: RPI CS Dept. Lines: 32 In article <945@cmx.npac.syr.edu> gefuchs@top.cis.syr.edu (Gill E. Fuchs) writes: >Hello Net, > >2 history related questions: > > 1 - how to redefine "foo" (anything else, that is) instead of > the "!" for the "YO UNIX, HISTORY COMMAND COMING UP"... > I would assume that you can't do that in csh. > 2 - if #1 works, how about defining something which will not > require a (ala up arrow in vms) to retrieve the last > command. On the other hand, once i have the last command > up, i want to change a character and only then unleash it > with the appropriate > You can use ksh to do that. By pressing ESC you go into some wierd mode were you acan either use vi or emacs keys to move back into history. You can also search back in history for a given command and also you can do command substitution and history in a single command (you can alias it also). You might want to take a look at ksh then. Dont't ask me too much though, I use csh! George Kyriazis kyriazis@turing.cs.rpi.edu kyriazis@ss0.cicg.rpi.edu ------------------------------