_freak_ wrote: > I use the up arrow to repeat commands in the bash shell. One thing I am used > to from csh is when I have a command I want to repeat that starts with "vi" > I can type "vi" and then hit "up arrow" and it will repeat all the vi > commands that I have used. Bash does not seem to do this or at least I > can't figure out how to make it do it. Any tips?
You are probably talking about tcsh and not csh. That behavior is not provided by csh. But I can't even recreate that behavior in tcsh at this point either. (I just tried.) In bash if you are editing the command line in the default emacs editing mode then C-r will invoke reverse-search-history. Doing what you are asking can be easily done with the following commands. C-r vi C-r C-r C-r ...repeat as desired... Not being a user of the vi editing mode I do no know if the same is possible using the vi commands. What I do know about vi mode is that ESC / will invoke the search history. Typing the following is similar. ESC / vi ENTER / ENTER / ENTER / ENTER ...repeat as desired... Bob _______________________________________________ Bug-bash mailing list Bug-bash@gnu.org http://lists.gnu.org/mailman/listinfo/bug-bash