ourlil.com

A web site for tutti noi (all of us!)

  • Home
  • About
  • About – sample
  • Healing Christofer – Fun’-Raiser
    • Gallery
  • JP’s Page

Archive for May 22nd, 2007

bash history & completion tips

Tuesday, May 22nd, 2007

This is an oldie… bind the up and down arrow keys to searching `bash` history:

http://www.macosxhints.com/article.php?story=20031026174236860

Type this into vi ~/.bash_profile, and in place of

<up>

type control + v, then up arrow. In place of

<down>

type control + v then down arrow. (Control V tells vi to put the next character in the doc, rather than just moving up when you press up arrow etc.)


bind '"<up>":history-search-backward'
bind '"<down>":history-search-forward'

Then close all Terminal windows, and quit the app, then open Terminal again and you should have the feature.

also…

PS, don’t forget to add these to your .inputrc while you’re at it:
set show-all-if-ambiguous on
set completion-ignore-case on

Posted in Hacks, Interactive Team, Mac, WebTech, nifty, whoa! | 1 Comment »

  •  

    May 2007
    S M T W T F S
        Jun »
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  
  • Pages

    • About
    • About – sample
    • Healing Christofer – Fun’-Raiser
      • Gallery
    • JP’s Page
  • Archives

    • April 2012
    • November 2011
    • July 2010
    • February 2010
    • November 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • October 2008
    • September 2008
    • August 2008
    • July 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • December 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
  • Categories

  • Favorites

    Here're a few sites I like to visit:
    • WPMU.org
    • Holy Shmoly
    • AppleInsider.com
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

Copyright © 2012 - ourlil.com | Entries (RSS) | Comments (RSS)

WordPress theme designed by web design