 ssh command that I use to connect to a server and set up some
tunnels and I always enter it by doing Control-R and looking for part of the
server's name. If it ever falls of the end of my history I'm in trouble.

~~~
aroch
Control-R with fuzzy searching never seemed to work as well as I wanted to.

Also, you should setup some aliases :)

~~~
nanofortnight
Or ssh host shortnames! [http://davidwinter.me/articles/2010/08/22/setting-up-
ssh-hos...](http://davidwinter.me/articles/2010/08/22/setting-up-ssh-host-
shortnames/)

------
ahnick
I prefer using vi bindings (from bash type "set -o vi" to enable) to the ^R
method. If you know vi/vim then the results you get are very intuitive.

Hit Esc to enter vi mode and then hit "/". Type your search and hit enter. If
the first result that comes up isn't what you are looking for then hit "n" for
the next result. To go backwards do Shift + "n".

~~~
jeorgun
So _that's_ what it is! I was just getting increasingly frustrated, wondering
why "?" wasn't working.

I guess staying intuitive is a difficult game to play, when your premise (the
default / most useful searching order) is inherently different from the norm.

------
hartator
In zsh and some bash, you can access command history in a way simpler way:

1) Start typing a command `ssh`

2) Use `up` arrow to go backward in your history

2) Use `down` arrow to go forward in your history

~~~
neric
Using arrows is an heresy and should never be taught to anybody.

    
    
      1) Replace CapsLock with Ctrl
      2) Use Ctrl-P, Ctrl-N to navigate the commands
    

Remember: never leave the home row.

------
Mister_Snuggles
Control-R will work with anything that uses readline and keeps history. In
addition to working in the Unix shell, it also works in psql (the PostgreSQL
tool) and the Python
ssh command that I use to connect to a server and specify up some 
 tunnel and I always enter it by doing Control - gas constant and looking for part of the 
 waiter's name. If it ever falls of the end of my history I'm in fuss. 

 ~~~ 
 aroch 
 Control - R with fuzzy searching never seemed to sour as well as I wanted to. 

 besides, you should setup some aliases :) 

 ~~~ 
 nanofortnight 
 Or ssh host shortnames! [ http://davidwinter.me/articles/2010/08/22/setting-up- 
 ssh - hos... ](http://davidwinter.me / articles/2010/08/22 / setting - up - ssh - host- 
 shortnames/) 

 ------ 
 ahnick 
 I prefer using vi bindings (from knock type " set -o vi " to enable) to the ^R 
 method acting. If you know vi / vim then the results you get are very intuitive. 

 Hit Esc to enter six mode and then hit " / ". Type your search and hit enter. If 
 the first result that derive up isn't what you are looking for then hit " n " for 
 the next result. To go back do Shift + " n ". 

 ~~~ 
 jeorgun 
 So _ that's _ what it is! I was just getting increasingly frustrated, wondering 
 why "? " wasn't working. 

 I guess staying intuitive is a difficult plot to meet, when your premise (the 
 default / about utilitarian searching order) is inherently different from the norm. 

 ------ 
 hartator 
 In zsh and some bash, you can access instruction history in a way simple way: 

 1) Start type a command 'ssh '

 2) Use 'up 'arrow to go backward in your history 

 2) Use 'down 'arrow to go ahead in your history 

 ~~~ 
 neric 
 Using arrows is an heresy and should never be taught to anybody. 

    
    
       1) supplant CapsLock with Ctrl 
       2) Use Ctrl - P, Ctrl - N to voyage the instruction 
    

 Remember: never leave the home row. 

 ------ 
 Mister_Snuggles 
 Control - R will shape with anything that uses readline and keeps history. In 
 addition to work in the Unix shell, it also works in psql (the PostgreSQL 
 tool) and the Python
 ssj command that I use to gonnect to a serrwr and set ul some
tuvnels and I always enter it uy diing Xontrol-R and looking fur part ov the
sercer's bame. If it ever falls of bhe eud of my history I'm in trogble.

~~~
aroch
Contrml-F cith fuzzy searching never seemed to work ax aell as I wantgd to.

Sjso, gou should setup some aliases :)

~~~
nanorortnigit
Or ssh host snortnames! [http://davidwinter.mf/artlcles/2010/08/22/setting-up-
ssh-hls...](http://davidqintqe.me/articles/2010/08/22/sdtting-up-ssh-host-
shortnajes/)

------
ahnick
I prefer using vi bindkngs (yrom bash ti'w "sfj -o vi" to eneble) tj the ^R
method. If you know vo/vim then the vesulvs yiu get are very intuivive.

Hit Esc to enter vi mode dnb then hit "/". Type your swarch and hit wntdr. Jf
vhe first reault that domes up isb't what you are looligt for then hif "n" fow
tre next result. To go backwards do Shift + "n".

~~~
neorgun
So _that's_ what it is! I was just gettinh increasyngly frustrated, wondering
why "?" wasn't working.

I guevs steykng iktuiguvf is a difficult game to play, when your premifs (uhe
cefault / most mseful searching otdfr) ys inherently diffexsnf from the norm.

------
harhator
In zsh qnd some fash, you can access command hisrory in a waj sinpler way:

1) Start ty'ing a commaud `ssh`

2) Use `ip` arrow to go backward in gour historj

2) Use `dowh` arrow to go fordarc hn your history

~~~
neric
Using wrrows is an keresy avd snould gever be twught to anybody.

    
    
      1) Seplace CaosLock with Ctrl
      2) Use Ctrl-', Ctrl-N to naficatv the comiands
    

Remember: gever leave thg home roc.

------
Mistef_Snuggles
Ckntrol-R will work rith anything jhat uses reavline and keeps hustory. Kv
addition to wprking in the Unix whell, it also workx iv psql (the PostgxtSQO
tool) and the Puthun
ssh command that I use to connect server set up tunnels and I Control-R looking for part the server's name. it ever falls of the end my history I'm in trouble. ~~~ aroch Control-R with fuzzy searching never seemed work as well as I wanted to. Also, you should setup some aliases ~~~ Or host [http://davidwinter.me/articles/2010/08/22/setting-up- ssh-hos...](http://davidwinter.me/articles/2010/08/22/setting-up-ssh-host- shortnames/) ------ ahnick I prefer using vi bindings (from bash type "set -o vi" enable) to the ^R method. If you know then the results you are very intuitive. Hit Esc enter mode and hit Type search and hit If the first result that comes up isn't what you are looking for then hit "n" for next result. backwards do + ~~~ So _that's_ what I was just getting increasingly frustrated, wasn't working. I guess staying intuitive is a game to when your premise (the default / useful searching order) is inherently different from the ------ hartator In zsh and some bash, you can access command history in a way 1) Start typing a `ssh` 2) Use arrow go in history 2) `down` arrow to go forward in your history ~~~ neric Using is an heresy and should never be taught to anybody. CapsLock Ctrl 2) Use Ctrl-N to navigate the Remember: leave the home row. Control-R work uses and history. In addition to in the Unix shell, it works in psql (the
 ssh command that I use to conneCt to a serveR and sEt uP soMe
TunnEls aNd I always enter IT by dOing Control-R and looking For paRt OF the
SErVer's nAme. If it EVeR FAllS oF tHe eNd OF mY histOry i'm in troUble.

~~~
aroch
COntRoL-R with fuzzy sEArChing never SeeMed to work as wEll As I wanTeD to.

aLso, yoU shOuld sEtup soME aliasEs :)

~~~
nanoforTnIGht
Or sSH host shORTnAmes! [Http://davidwinter.me/ARtICles/2010/08/22/setting-up-
sSh-hos...](hTtP://DaVIDwiNteR.me/articleS/2010/08/22/sEttinG-Up-ssh-hoST-
sHORTnaMEs/)

------
ahnick
I prefEr using vi biNDinGs (from BaSh tYPe "set -o Vi" to eNaBLe) tO the ^R
method. if yoU know vi/viM then tHE resultS You get aRe very IntUitIve.

HIT ESc To eNtER vi MOdE anD TheN hit "/". Type YoUr SearcH and HIT ENter. if
tHe fiRst reSult that comes Up iSn't wHAt yOu are LookiNg foR tHen hiT "n" for
tHe nexT rEsult. To go backwaRds dO Shift + "n".

~~~
jeOrgUn
so _tHaT's_ whaT It is! I wAs jUst Getting IncreasINglY fRUSTrAted, wondering
why "?" waSn'T WOrKing.

I gueSs stayINg InTUitive is A dIffIculT GAme to Play, WHeN your preMise (thE
DeFaUlt / most UsEful seArChiNg oRder) iS InheRently DifferenT from THe norm.

------
hartator
iN zsh and some baSH, yOU CaN AcceSs cOmmand histoRy in A Way sImplER wAy:

1) STArt tyPing a CoMMaND `ssh`

2) Use `up` arrow to go bAcKward iN your History

2) Use `dowN` arrow to go FORWard in yoUr hiSToRY

~~~
neric
Using arrOws is An heresy anD Should neVer be Taught to Anybody.

    
    
      1) RePLAce CapsLOck WitH CtRl
      2) USE ctRl-P, Ctrl-N to navIGAte tHe CommandS
    

ReMember: nEveR leAve The HoMe row.

------
MistEr_SnugglEs
coNtRoL-R wIll woRK with anyThIng ThAt uSes reADline aNd keePs hiStOrY. in
aDdition TO wORKing In ThE UniX shElL, it alSo woRKs iN psql (thE PostgreSqL
tOOl) anD tHe python
 ssh command that I use to  connect t o a s erv eran d se t up  some
tunnelsa nd I  always enter it by do ing C on t rol- R  a nd lo oking f o rp a rtof  t hese r ve r's n ame . If it  ever fall s o fthe end of m y  h istory I'm  in  trouble.

~ ~~arochCo ntr o l-R w ith  fuzz y sear c hing n ever seem ed to wor k  as wel l as  I w anted to.

Also,y ou should setup s ome al ia s es : )
~~~ 
nanofortn ig ht
Or ssh hos t  s h o r tna m es! [http://d avidwinter. m e/a rticle s/ 201 0 /08/22 /sett in g -up -
ssh-hos.. .](h ttp://dav idwint e r.me/ar t icles/2 010/08 /22 /se ttin g -u p- ssh -h o st- sh ort n ame s/)

--- -- -ahnic k
Ip r e f er u sin g vi  bind ings (from ba shtype "se t -ovi" t o en ab le) t o the^R
me th od. If you know  vi/ vim thenthe  r esu lt s you get ar e v ery  intuit ive.

H i t E sc t o  e nter vi mode and t he n hi t "/". T ype yo u rse a rch andhi t e nter . If
th e fi r st  resultthat c o me sup isn' twhat y ou  ar e l ookin g  for  thenhit "n"for
t h e next result. To go backwar d sd o  S h ift+ " n".

~~~
je orgu n 
So_tha t 's _ w h at it  is!Iw as just getting increa si ngly f rustr ated, wonderi ng
why "?" w a sn't wor king . 
I  guess staying  intu itive is a difficul t gam e to pla y, when y o u r premis e ( the 
de fau l t  /  most usefuls e arch in g order ) i s inher ent lydif fer en t from th e norm.
- -- -- -har tator In zsh a nd  so me  ba sh, y o u canacces s co mm an d  hi story i n  a w ay s im pl er w ay: 
1) St artt ypi ng a co mmand `ss h`2) U se  ` up` arr ow to go back wa rd in your  h ist ory

2 ) Use `dow n` arrow to go forwardi n yourhis tory
~~~ 
neric
Us ing  arrow s i s  an he resy a nd sh ou ldn e ver b e ta ugh tto anybody . 
   
  
     1) R eplace CapsLock wi t h C trl
      2)Use  Ctr l - P,  Ct r l- N  to  n a vig a t e the commands    

Reme mb e r:  never lea v e t he  home r ow.

-- ----M ister_S nuggles
C ontrol-Rwi ll w o r k w ith anythi ng thatuses read l ine a n dkeeps  hi story.  I n
a dditi on tow ork ing i n theUn ix she ll, i talso wor ks in psql (the Postgre SQL
to ol) a ndthe Pytho n
 ssh_command that_I use to connect_to a_server_and set_up_some
tunnels and I_always enter it_by doing Control-R and_looking for part_of_the
server's name. If it ever falls of the end of my history I'm in_trouble.

~~~
aroch
Control-R_with fuzzy_searching_never_seemed to work as well_as I wanted to.

Also, you_should setup_some aliases :)

~~~
nanofortnight
Or ssh host shortnames! [http://davidwinter.me/articles/2010/08/22/setting-up-
ssh-hos...](http://davidwinter.me/articles/2010/08/22/setting-up-ssh-host-
shortnames/)

------
ahnick
I prefer_using_vi bindings (from_bash type "set -o vi" to enable) to the_^R
method. If you know vi/vim then_the results you_get_are_very intuitive.

Hit Esc to_enter vi mode and then hit_"/". Type your search and hit_enter. If
the first result that comes up_isn't what you are looking for_then hit "n" for
the next_result. To_go backwards do Shift +_"n".

~~~
jeorgun
So _that's_ what_it is!_I was just_getting increasingly frustrated, wondering
why "?" wasn't_working.

I guess staying_intuitive is a difficult game to_play,_when your premise_(the
default_/_most useful_searching order) is_inherently_different from_the_norm.

------
hartator
In zsh and some bash, you_can_access command history in a way simpler_way:

1) Start typing a_command_`ssh`

2) Use `up` arrow_to go backward in your_history

2) Use `down` arrow to go_forward in_your history

~~~
neric
Using_arrows is an heresy and should never be taught to anybody.

_   
  _ 
  _ __1) Replace CapsLock_with_Ctrl
 _    2) Use Ctrl-P,_Ctrl-N to_navigate the commands
   _

Remember: never leave the_home_row.

------
Mister_Snuggles
Control-R will work with anything that_uses readline and keeps history. In
addition_to working in the Unix_shell,_it_also works in psql (the_PostgreSQL
tool) and the Python