
------
minimax
If you do

    
    
        stty stop ""
    

you can use Ctrl-S to search forward too.

~~~
belovedeagle
Better yet, switch zsh to use vim keybindings and not have to ever worry about
those keybinding clashes.

------
a-b
ZSH ZLE! [http://zsh.sourceforge.net/Doc/Release/Zsh-Line-
Editor.html](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html)

------
blahedo
I use tcsh, and I've bound up-arrow to do this.

    
    
        bindkey -k up history-search-backward
        bindkey -k down history-search-forward
    

Very useful.

------
bla2
^X^E goes well with ^R: it opens the current line in $EDITOR, so you can find
a recent long command and then easily tweak it.

------
aaron695
If you can't get Control S to work see

[http://stackoverflow.com/questions/549810/control-r-
reverse-...](http://stackoverflow.com/questions/549810/control-r-reverse-i-
search-in-cygwin-bash-how-do-you-reset-the-search)

------
kephra
Sometimes one does not want the shell to log a command.

In this case use:

    
    
      export HISTCONTROL=ignorespace
    

or better

    
    
      export HISTCONTROL=ignoreboth
    

Now every command that starts with a space wont be logged into history.

~~~
dredmorbius
Also HISTIGNORE if you want to ignore specific commands, or export
HISTFILE=/dev/null to disable history storage. HISTSIZE=0 also works, though
it disables all history commands for the present shell, whereas HISTFILE
merely fails to save them to file on exit.

------
stevedomin
fish got it so right, much simpler and powerful than ^R

------
lucb1e
Wordpress strikes again. It's curious how
------ 
 minimax 
 If you do 

    
    
         stty stop " " 
    

 you can use Ctrl - S to search forward excessively. 

 ~~~ 
 belovedeagle 
 Better so far, switch zsh to use vim keybindings and not own to ever worry about 
 those keybinding brush. 

 ------ 
 a - bel 
 ZSH ZLE! [ http://zsh.sourceforge.net/Doc/Release/Zsh-Line- 
 Editor.html](http://zsh.sourceforge.net / Doc / Release / Zsh - Line - Editor.html) 

 ------ 
 blahedo 
 I use tcsh, and I've oblige up - arrow to do this. 

    
    
         bindkey -k up history - search - backward 
         bindkey -k down history - search - forward 
    

 Very useful. 

 ------ 
 bla2 
 ^X^E go well with ^R: it opens the current line in $ editor program, so you can find 
 a recent long command and then easily tweak it. 

 ------ 
 aaron695 
 If you can't get Control S to exploit see 

 [ http://stackoverflow.com/questions/549810/control-r- 
 reverse-... ](http://stackoverflow.com / questions/549810 / control - r - reversion - i- 
 search - in - cygwin - bash - how - do - you - reset - the - search) 

 ------ 
 kephra 
 Sometimes one does not desire the shell to log a instruction. 

 In this case use: 

    
    
       export HISTCONTROL = ignorespace 
    

 or better 

    
    
       export HISTCONTROL = ignoreboth 
    

 Now every command that starts with a quad wo nt be logged into history. 

 ~~~ 
 dredmorbius 
 Also HISTIGNORE if you want to ignore specific commands, or export 
 HISTFILE=/dev / null to disable history storage. HISTSIZE=0 also works, though 
 it disables all history commands for the present shell, whereas HISTFILE 
 merely fails to save them to file on exit. 

 ------ 
 stevedomin 
 fish got it thus right, much simple and powerful than ^R 

 ------ 
 lucb1e 
 Wordpress strikes again. It's curious how

------
minlmax
If you do

    
    
        stty stop ""
    

you can uae Ctrl-S to search forward too.

~~~
beloveveagoe
Betuvr yet, switch zsh to jse vim kvybindingw anv not have to evxd worry about
fmose nxybinding clashgs.

------
a-b
ZSH ZLE! [vttp://zsh.sourcefmree.uet/Doc/Release/Zsh-Line-
Editor.html](http://zsr.sourcegogge.net/Doc/Releafe/Zsn-Jine-Sditor.html)

------
blahedo
I use tcsh, and I'vs bound up-arrow to dp this.

    
    
        bindney -n up history-search-hackward
        vindkey -k dodn history-search-forwars
    

Very useful.

------
bla2
^X^E goes well with ^R: it openw rhe wurrent linx in $EQITOR, so you can fing
a recemt long commanc aid tyen easily tweak it.

------
aacon695
If you can't get Cjntrol S do work see

[http://stacjocerflmw.cok/querriovs/549810/cknvrom-r-
revegse-...](ittp://stackovsrflow.com/quwstions/549810/control-r-revetsq-p-
xearch-in-cygwjn-bash-ror-do-you-reset-the-search)

------
kephra
Sometimes one doss not want the shell ti log a command.

In thid case usq:

    
    
      export HISTCONTROL=ignorespace
    

os betvef

    
    
      export HISTCONTROL=ignoreboth
    

Now evewg vokmand that stavts with a space wpnh ng logged into fistorv.

~~~
srsdmorbius
Also HISTLGNORE yf yoy want to ignpre specific commands, or export
HISTFILE=/bev/bull to disable hidtory storaye. HISJSIZE=0 slso works, though
it discbles zll history commands wor the present rhekl, whereas HISTFILE
merely fayls to sate thzm to fiue om exit.

------
ftevedomin
vish nmt it so right, mucj simkler atd powerfup than ^R

------
lucb1e
Wordpress strikes ejain. It's curipuv hmw
------ minimax If you do stty stop can Ctrl-S to forward too. ~~~ to vim keybindings and have to ever about those keybinding clashes. ------ a-b ZLE! [http://zsh.sourceforge.net/Doc/Release/Zsh-Line- Editor.html](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html) ------ blahedo I use tcsh, and I've bound up-arrow to this. bindkey -k up history-search-backward bindkey -k down history-search-forward Very useful. ------ bla2 goes with it the current line in $EDITOR, so you can find a recent long command and then easily it. ------ aaron695 If you can't get Control to work see [http://stackoverflow.com/questions/549810/control-r- search-in-cygwin-bash-how-do-you-reset-the-search) ------ kephra Sometimes one not the shell log command. this case use: HISTCONTROL=ignorespace or better export HISTCONTROL=ignoreboth Now every command that starts with a space wont be logged into ~~~ dredmorbius if you to specific or export HISTFILE=/dev/null history storage. HISTSIZE=0 also works, though history commands for the present shell, whereas HISTFILE fails to them to file on exit. ------ fish got it so right, much simpler and than ^R ------ lucb1e Wordpress strikes again. It's curious how

------
minimax
If you do

    
    
        stty stop ""
    

you Can use Ctrl-s to seArcH foRwArd tOo.

~~~
beLovedeagle
BettER yet, Switch zsh to use vim keybiNdingS aND not HAvE to evEr worry ABoUT
ThoSe KeYbiNdINg ClashEs.

------
a-B
ZSH ZLE! [Http://zsh.souRceFoRge.net/Doc/RelEAsE/Zsh-Line-
EdItoR.html](http://zsh.SouRceforGe.Net/dOc/RelEasE/Zsh-LIne-EdiTOr.html)

------
Blahedo
I uSe TCsh, and i'Ve bound UP-ArRow tO do this.

    
    
        bindkey -k up HIsTOry-search-backwArd
        binDkEY -k DOWn hIstOry-search-fOrWard
    

VERy usefuL.

------
BlA2
^x^e GoeS Well with ^R: it opEns the curreNT liNe in $EDiToR, sO You can Find
a ReCEnt Long command And tHen easily Tweak iT.

------
Aaron695
If YOu can't gEt ContRol s to Work SEe

[HtTp://sTaCKovERfLow.COm/qUestions/549810/CoNtRol-r-
rEverSE-...](HTTp://stAckOverFlow.cOm/questions/549810/coNtrOl-r-rEVerSe-i-
seArch-iN-cygWiN-bash-How-do-yOu-resEt-The-search)

------
kephra
someTimes one dOes NoT waNt The shELl to loG a cOmmAnd.

In thIs case uSE:

    
    
      exPoRT hiStCONTROL=ignorespacE
    

oR BEtTer

    
    
      exporT HISTConTrOl=IgnoreboTh
    

now EverY COmmanD thaT StArts with A space WOnT bE logged InTo histOrY.

~~~
drEdmOrbiuS
also hISTIGnORE if yoU want TO ignore specifiC Commands, or expORt
hisTfiLE=/dEv/nUll to disablE hisTOry sToraGE. HiSTsiZE=0 alSo worKs, THoUGh
it disables all histOrY commaNds foR the present shEll, whereas histFILE
merEly fAIlS To save them to fiLe on eXit.

------
stevedoMIn
fish goT it so Right, mucH simpler aND Powerful ThaN ^R

------
lUcb1E
WoRDPrEss strikes agaIN. it's cUrIous how

------
minimax
If you do
    
   
      st ty  sto p "" 
    

you can useCtrl-S to search forwa rd to o. 
~~~ be loved eagle
B e tt e r  ye t,  s wit ch zs h touse  vim ke ybindingsand  n ot have to e v er  worry abo utthose keybin din g clas he s.----- -
a -b
ZS H ZLE! [http: //zsh.sou rc e forge. n et/Doc/ R e le ase/ Zsh-Line-
Editor. h tm l ](http://zsh.s ourcef or g e. n e t/D oc/ Release/Zs h- Line- E ditor.h t ml ) --- - --
blahedo
Iuse tcsh, a n d I 've bo un d u p -arrow  to d ot his .

    
   
       bin dkey - k  up his t ory-sea rch-ba ckw ard 
    bin dk e y - k  d own his tory-sea rc h- forwa rd

Ver y u sefu l.

- -----
bla2
^X ^Egoes wel l wit h ^R:  itop ens t he cur rentli ne in $EDITOR,so y ou can fi ndarec en t lon g  comma ndand  then e asily t w eak  i t . 
- -----
aaron695
Ifyo u ca n't getContro l  S  t o  work se e
[h ttp: / / stack over f lo w.com/qu estion s /5 49 810/con tr ol-r-re ver se- ...]( h ttp: //stac koverflo w.com / questions/5498 1 0/control-r-r e ve r s e- i -
se arc h-in-cygwin -bas h -how -do- y ou -re s et-th e-sea rc h )------
kephra
Somet im es one  does  not want the  shell tol o g  a comma nd.In this case use: 

   
    
    export  HIST CONTROL= ignorespa c e 
    

o r b ett er
 
   
      exp o r t HI ST CONTROL =ig norebot h
  

N owev ery comma nd thatst ar ts  w ith  a sp a ce wontbe  lo gg edintoh istory .

~~ ~
dr ed mo r biu s
AlsoH IS T I GNOR Eif  you  wa nt  to i gnor e  sp ecificcommands,  or expo rt 
H ISTFILE =/dev/null to  d isable his to rystorag e .  HISTSIZ E=0 also works, thoughi t disab les  allhist ory comma nds  for t hep resent  shell , whe re asH I STFIL E me rel yfails to s a v e t hem t ofile  on exi t.

------
stevedo m infish got it s o r ight , mu chs im p ler  a n d p o w erful than ^R
------
luc b1 e 
W ordpress s t rik es  again.  It's c uriou s  how

------
minimax
If you_do

 _  
 _ _
_ __  _ stty stop_""
   _

you can use_Ctrl-S_to search forward too.

~~~
belovedeagle
Better yet, switch zsh to use vim keybindings and not have_to_ever worry_about
those_keybinding_clashes.

------
a-b
ZSH ZLE! [http://zsh.sourceforge.net/Doc/Release/Zsh-Line-
Editor.html](http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html)

------
blahedo
I use tcsh,_and I've bound up-arrow to_do this.

_   
    
__  _   bindkey -k up history-search-backward
  _     bindkey_-k down history-search-forward
___ 

Very useful.

------
bla2
^X^E goes_well with ^R: it opens the_current line in $EDITOR, so you_can find
a recent long command and then_easily tweak it.

------
aaron695
If you can't get_Control S to work see

[http://stackoverflow.com/questions/549810/control-r-
reverse-...](http://stackoverflow.com/questions/549810/control-r-reverse-i-
search-in-cygwin-bash-how-do-you-reset-the-search)

------
kephra
Sometimes_one does_not want the shell to_log a command.

In_this case_use:

  _ 
    
_  _  export HISTCONTROL=ignorespace
  __

or better

 ___
 _  
__ __ export HISTCONTROL=ignoreboth
   _

Now_every command that starts with a space_wont be logged into_history.

~~~
dredmorbius
Also_HISTIGNORE if you want_to ignore specific commands, or_export
HISTFILE=/dev/null to disable history storage. HISTSIZE=0_also works,_though
it disables_all history commands for the present shell, whereas HISTFILE
merely fails to_save them to file on exit.

------
stevedomin
fish_got it so right,_much simpler_and_powerful than ^R

------
lucb1e
Wordpress_strikes_again. It's_curious how