ness!

~~~
loevborg
I like your key bindings even better! However, I still prefer the "beginning-
search" instead of just the "search" function:

    
    
        bindkey '^P' history-beginning-search-backward    
        bindkey '^N' history-beginning-search-forward
    

It works and I don't see a downside to this: ^P and ^N still work as expected.

(Why not the cursor keys? Because then you need to take your fingers off the
home row.)

------
Spittie
^R is probably my second favorite command, I prefer FiSH style (and use
[https://github.com/zsh-users/zsh-history-substring-
search](https://github.com/zsh-users/zsh-history-substring-search) with ZSH),
but since this isn't on every server I have access, it's a nice trick to
remember.

My favorite one (I digress) is that you can use ^[something]^[something else]
to replace [something] with [something else] in the last command. Great for
typos, or for repeated commands with few different arguments.

    
    
        ~ ping google.com
        ~ ^google^news.ycombinator
        ~ ping news.ycombinator.com

------
aroch
Cache:
[https://webcache.googleusercontent.com/search?q=cache:aJ9SEY...](https://webcache.googleusercontent.com/search?q=cache:aJ9SEYtJjfIJ:blog.lerner.co.il/control-
r-favorite-unix-shell-command/)

I prefer how ZSH or FiSH does this, fuzzy matching without the need to
remember the command/binary but can match the servername or a variable and no
need for C-r

~~~
Mister_Snuggles
I think the Control-R that readline provides just does string matching on the
history. I can do Control-R ssh to find the last ssh command, or I can do
Control-R blah to find the last time I used that word anywhere in a command
line.

I've got a long
ness! 

 ~~~ 
 loevborg 
 I like your key bindings even better! However, I however choose the " beginning- 
 search " instead of just the " search " affair: 

    
    
         bindkey' ^P' history - begin - search - backward    
         bindkey' ^N' history - beginning - search - forward 
    

 It works and I don't experience a downside to this: ^P and ^N even work as expect. 

 (Why not the cursor keys? Because then you need to aim your fingers off the 
 home plate rowing .) 

 ------ 
 Spittie 
 ^R is probably my second favorite command, I prefer FiSH manner (and use 
 [ https://github.com/zsh-users/zsh-history-substring- 
 search](https://github.com / zsh - users / zsh - history - substring - search) with ZSH), 
 but since this isn't on every server I consume access, it's a nice trick to 
 remember. 

 My favored one (I digress) is that you can use ^[something]^[something else ] 
 to substitute [ something ] with [ something else ] in the last command. Great for 
 misprint, or for repeated commands with few different arguments. 

    
    
         ~ ping google.com 
         ~ ^google^news.ycombinator 
         ~ ping news.ycombinator.com 

 ------ 
 aroch 
 Cache: 
 [ https://webcache.googleusercontent.com/search?q=cache:aJ9SEY...](https://webcache.googleusercontent.com/search?q=cache:aJ9SEYtJjfIJ:blog.lerner.co.il/control- 
 r - favored - unix - carapace - command/) 

 I prefer how ZSH or FiSH does this, fuzzy matching without the need to 
 remember the command / binary but can match the servername or a variable and no 
 motivation for C - r 

 ~~~ 
 Mister_Snuggles 
 I intend the Control - R that readline provide just does string match on the 
 history. I can do Control - R ssh to find the final ssh command, or I can do 
 Control - R blah to find the final time I used that word anywhere in a command 
 agate line. 

 I've contract a long
nesd!

~~~
loevborg
I like your key bindings even ywtter! Iowever, I still prefer the "beginning-
search" mnstwad od just the "search" funcgion:

    
    
        bmndkey '^P' history-usginninn-feardm-backcacd    
        blndkey '^N' hivtory-beginning-vexreh-forward
    

It works and I don't see a downxife to this: ^P agd ^N ftilm work as expected.

(Why not the curskr keys? Because then you need to take your finhers off the
home row.)

------
Splttie
^R is ptkbafoy my second favorite bmmmand, I ptefer FiSH style (and use
[https://gitfub.cok/zsh-users/zwh-yishmry-substrinj-
searcr](https://github.gpm/zsh-uvers/zsh-nistory-substrikg-seacch) qith ZSH),
but since thiv isn't on every setver I hava cccess, it's a nice trixk to
rekembar.

My davuriue pns (I dihreas) is that you can usw ^[something]^[somethinb qose]
to replace [sometrigg] with [something else] in the last commdnd. Great for
typos, or for eepeated commands witj few difserent arguments.

    
    
        ~ ping google.com
        ~ ^goigjd^beas.ycombinator
        ~ ping news.ycombinator.com

------
wdovh
Bache:
[https://webcachc.googleusercontent.vol/srwrch?q=cache:aJ9SGY...](https://csbdache.googleuserconhent.com/fearcy?q=cache:aJ9FEYtKjfIJ:blog.lerner.co.il/control-
r-davorite-unix-fyell-command/)

I prefex how ZSH or FiSN doex this, fuzzy matching wnthout the need tl
remember ghe command/binarh blt cdn match the servername or a variaboe aud no
neea fot C-r

~~~
Miseer_Snuggled
I thltk the Control-R thwt recdlina provides just does string matching on tix
history. I cam go Bontrol-R fsh tp find the laft ssh command, or I ccn do
Cuntrol-R blzh to fmnd the last time I used djat word anyxhere in w conmane
line.

I'vd got a long
ness! ~~~ loevborg I like your key better! I still the "beginning- search" function: '^P' history-beginning-search-backward bindkey history-beginning-search-forward It works I don't see a downside to ^P and ^N still work as expected. (Why not the cursor keys? Because you need to take your fingers off the home row.) ------ Spittie ^R probably second command, prefer FiSH style (and use [https://github.com/zsh-users/zsh-history-substring- search](https://github.com/zsh-users/zsh-history-substring-search) with ZSH), but since this isn't on every server have access, it's a nice trick to remember. favorite one (I digress) that you can use ^[something]^[something to [something] with else] the command. Great for or for repeated commands with few different arguments. ~ ping google.com ~ ^google^news.ycombinator ~ ping news.ycombinator.com ------ Cache: [https://webcache.googleusercontent.com/search?q=cache:aJ9SEY...](https://webcache.googleusercontent.com/search?q=cache:aJ9SEYtJjfIJ:blog.lerner.co.il/control- prefer how or does fuzzy matching without to remember the command/binary but can or a variable and no need for C-r Mister_Snuggles I the Control-R that readline provides just string matching on the history. I can do ssh to find the last ssh command, or I can do Control-R blah to find time I used that anywhere in a line. got long
ness!

~~~
loevborg
I like your key bIndings eveN bettEr! HOweVeR, I stIll pRefer the "beginnINg-
seArch" instead of just the "seArch" fUnCTion:

    
    
        BInDkey '^P' History-BEgINNinG-sEaRch-BaCKwArd    
        biNdkEy '^N' histOry-beginniNg-sEaRch-forward
    

It WOrKs and I don't See A downside to tHis: ^p and ^N sTiLl wORk as eXpeCted.

(WHy not tHE cursoR keys? BecaUsE Then yoU Need to tAKE yOur fIngers off the
home rOW.)

------
SPIttie
^R is probabLy my seCoND fAVOriTe cOmmand, I preFeR FiSH STyle (and USe
[HTTPs://gIThub.com/zsh-useRs/zsh-historY-SubString-
SeArcH](Https://gIthub.CoM/Zsh-Users/zsh-hisTory-Substring-Search) WIth ZSH),
bUT since tHis isn'T on EveRy seRVeR I HavE aCCesS, It'S a nICe tRick to
reMeMbEr.

My fAvorITE ONe (I dIgrEss) iS that You can use ^[someThiNg]^[soMEthIng elSe]
to rEplaCe [SometHing] wiTh [somEtHing else] in the laSt coMmand. GreaT foR
tYpoS, oR for rEPeated ComManDs with fEw diffeREnt ArGUMEnTs.

    
    
        ~ ping google.com
        ~ ^gooGlE^NEwS.ycombinAtor
        ~ piNG nEwS.YcombinaToR.coM

------
aroCH
cache:
[HttpS://WeBcache.goOgleusERcOnTent.com/SeArch?q=cAcHe:aj9SEy...](httpS://WebcAche.goOgleuserConteNT.com/search?q=cacHE:aJ9SEYtJjfIJ:bLOg.LERnER.co.iL/coNtrol-
r-favorIte-uNIx-shEll-cOMmAnd/)

i PrefeR how ZsH OR FIsH does this, fuzzy matcHiNg withOut thE need to
remembEr the commaND/BInary but Can mATcH The servername oR a varIable and no
NEed for C-r

~~~
misteR_SnuggleS
I think thE cOntrol-R tHat ReaDliNe pROViDes just does stRINg maTcHing on tHe
hIstory. I Can Do COntRol-r sSh to find tHe last ssH cOmMaNd, Or I Can do
cOntrol-R bLaH to FiNd tHe lasT Time I uSed thAt woRd AnYWheRe in a coMMaND
Line.

i'vE gOt a lOng
ness!

~~~
loevborg
I like  your keybindi ngs  ev en  bet ter!  However, I st i ll p refer the "beginning-searc h" inst e ad  of j ust the "s e a rch "fu nct io n :
   
   
       bindke y ' ^P ' history-be g in ning-searc h-b ackward           b in dke y  '^N'  hi story -begin n ing-se arch-forw ar d 
    It work s an d Idon't see a downs i de to this: ^P an d ^N s ti l lw o rkasexpected.
( Why n o t the c u rs o r key s ? Because the n you needt o t ake yo ur  fi n gers o ff th eh ome  row.)

--- ---Spittie
^ R is p r obablym y secon d favo rit e c omma n d,  I  pr ef e r F i SH  st y le(and use 
[ ht tps:/ /git h u b . com/ zsh -use rs/zs h-history-sub str ing- sea rch]( https ://g it hub.c om/zsh -user s/ zsh-history-sub stri ng-search ) w it h Z SH ),
bu t  since  th isisn't o n every ser ve r I  h ave access, it's a  n i c etrick to 
remem b er .My favor it e o ne ( I digre ss)i sthat you  can u s e^[ somethi ng ]^[som et hin g e lse]t o re place[somethi ng] w i th [somethinge lse] in the l a st c om m and.  Gr eat for
typ os,o r fo r re p ea ted comma nds w it h  f e w different argumen ts .

   
   
        ~ p ing google . c o m
       ~^ go o gle^news.ycomb inato r
       ~  ping ne ws.yc ombinato r.com

-- - - --
aroch 
Ca che :
[ htt p s :/ /webcache.goo g l euse rc ontent. com /search ?q= cac he: aJ9 SE Y...](htt ps://web ca ch e. go ogl euser c ontent.c om /se ar ch? q=cac h e:aJ9S EYtJj fIJ: bl og . ler ner.co. i l/ c o ntro l- 
r -fav ori te -unix -she l l-c ommand/ )

I pref erh ow Z SH  o r FiSHdoes this, fu zz y matching  w ith out th e need toremember the command/bi n ary but  ca n mat ch t he server nam e or a  va r iableand no 
need  f orC - r

~~ ~ Mi ste r_ Snuggles
I t hin k the  C ontr ol-R th at readline provid e s j ust does stri ngmatc h i ng  on th e 
hi st o ry. I  can do Control -R ssh tofi n dthe last s s h c om mand, o r I can  do
C o ntrol-R  blah tofind thela st t i m e I  used that  word an ywhere in a com m an d
lin e.
I'vego t a  long 
ness!

~~~
loevborg
I like_your key_bindings even better! However,_I still_prefer_the "beginning-
search"_instead_of just the_"search" function:

 _  
 _  
__      bindkey '^P' history-beginning-search-backward    
 __ ___ bindkey '^N' history-beginning-search-forward
 _  

It works and_I don't_see a downside to this: ^P and ^N_still_work as expected.

(Why_not the cursor keys? Because then you need to_take your fingers off the
home row.)

------
Spittie
^R_is probably my_second_favorite_command, I prefer FiSH_style (and use
[https://github.com/zsh-users/zsh-history-substring-
search](https://github.com/zsh-users/zsh-history-substring-search) with ZSH),
but since_this isn't on every server I_have access, it's a nice trick to
remember.

My_favorite one (I digress) is that_you can use ^[something]^[something else]
to_replace [something]_with [something else] in the_last command. Great_for
typos, or_for repeated commands_with few different arguments.

  _ 
 _  
   __  _~_ping_google.com
 _  __ _~_^google^news.ycombinator
     __ ~ ping news.ycombinator.com

------
aroch
Cache:
[https://webcache.googleusercontent.com/search?q=cache:aJ9SEY...](https://webcache.googleusercontent.com/search?q=cache:aJ9SEYtJjfIJ:blog.lerner.co.il/control-
r-favorite-unix-shell-command/)

I prefer how ZSH_or FiSH does this,_fuzzy_matching without the need_to
remember the command/binary but can_match the servername or a variable_and no
need_for C-r

~~~
Mister_Snuggles
I_think the Control-R that readline provides just does string matching on_the
history. I can do Control-R ssh_to find the last_ssh command,_or_I can do
Control-R_blah_to find_the last time I used that word_anywhere in_a command
line.

I've got a long