|
|
#1 |
|
Prospect
Join Date: Feb 2002
Posts: 48
|
Hi,
There are two things that i would like to do with tcsh, but i can't seem to make them work on the Mac: 1) search my command history... in bash, you hit control-r and type as much of the command as you remember: is there something like this? 2) hit control-left/right arrow to move between words on the command line... i thought you could use bindkey in the cshrc, along with escape codes for the arrow keys, but that doesn't seem to work. Any ideas? |
|
|
|
|
|
#2 |
|
League Commissioner
Join Date: Jan 2002
Posts: 5,536
|
i think this might give you search command history:
% bindkey -k down history-search-forward % bindkey -k up history-search-backward |
|
|
|
|
|
#3 |
|
Prospect
Join Date: Feb 2002
Posts: 48
|
thanks! going through my history will now be 10 times more comfortable.
any takers for the next/previous word bit? there seem to be two problems: 1) doing ^v<control-right> and ^v<right> give the same code (^[[C)... so i can't really figure out if control-right is one of ^[OC ^[Oc... trial-error with vim, nothing seems to happen 2) tcsh seems to override some of the bindkey settings after you source your cshrc... if you type in the command or run source, the bindings work (but because of number 1, this only seems to work for the wrong key (<right>) bah... |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|