Re:Mac OS X hidden features and nice tips & tricks
by spacemanaki on Tuesday April 12, 2011 @08:26AM
(#2436843)
Note that I think that's a Bash thing, and the default is Emacs-style bindings (C-a, C-e, C-p, C-n) which include C-r for reverse interactive search of the history. I use that every day, a dozen or more times.
[ Parent
| on HN ]
Re:Mac OS X hidden features and nice tips & tricks
by fkcek on Tuesday April 12, 2011 @08:43AM
(#2436899)
My favorite is C-t to correct typos like 'liek' instead of 'like', I put the cursor between the e and the k and i press C-t.
Re:Mac OS X hidden features and nice tips & tricks
by graywh on Tuesday April 12, 2011 @10:21AM
(#2437291)
It's actually a Readline thing.
Re:Mac OS X hidden features and nice tips & tricks
by CountSessine on Tuesday April 12, 2011 @11:10AM
(#2437510)
Something I've always wondered though - did emacs take them from readline or did readline take them from emacs? How old is readline? Where did all of those C-a, C-e, etc conventions come from?
Re:Mac OS X hidden features and nice tips & tricks
by mturmon on Tuesday April 12, 2011 @03:25PM
(#2438758)
They came from emacs. Readline is now around v6, readline v2 seems to have been from the mid 1990s.
There is a smaller set of standard commands for killing (C-h for char, C-w for word, C-u for line) which are used in many terminal apps. They are orthogonal to emacs, and probably about as old (1970s).
Re:Mac OS X hidden features and nice tips & tricks
by spudlyo on Tuesday April 12, 2011 @10:17PM
(#2440415)
Those emacs style editing commands actually came from TECO in the 70s. Crazy that those editing commands are hardwired into my brain nearly 40 years later.
Re:Mac OS X hidden features and nice tips & tricks
by spacemanaki on Tuesday April 12, 2011 @11:08AM
(#2437504)
Yeah, that makes sense. Still, my point was that it's not specific to Terminal.app, so someone on another Unix would probably find it useful.