Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ctrl-R to search backwards for shell commands in csh

Tags:

shell

unix

csh

tcsh

I love this shortcut in borne shell, and want to find out if it is possible to simulate and/or have (perhaps to install an add-on or with a script) it in csh or tsch

thanks

like image 368
vehomzzz Avatar asked Sep 07 '09 02:09

vehomzzz


People also ask

How do I do a reverse search?

Activate reverse-i-search using Ctrl+r and then type in a query to find matches. Hit Ctrl+r again to find the next match. Demonstrating reverse-i-search.

What does Ctrl R do in Linux?

Ctrl+R – starts a reverse search, through the bash history, simply type characters that should be unique to the command you want to find in the history.

How do I do a reverse search in Linux?

Instead, we can use reverse-i-search . Start typing what you remember of your command. You will see the latest command from your history that matches your search term. Press ctrl + r again to navigate through earlier entries in your history that match your search term.


1 Answers

Try

bindkey "^R" i-search-back 
like image 73
haggai_e Avatar answered Oct 26 '22 09:10

haggai_e