IMPORTANT!

Snipt is going open source. We've toyed with this idea for quite a while, and have finally decided it's the right way to move forward.

A few things:
  • The entire Snipt source code will be released on GitHub under the 3-clause BSD License on Friday, September 10th.
  • While we'd like to think we're perfect, we realize we're only human. By open sourcing the software that runs this website, certain bugs or security flaws may be discovered that could compromise the privacy of your snipts.
  • Only the Lion Burger team will be able to push commits to the Snipt.net site. Contributors should send a pull request to add new features or submit patches.
  • By using this site, you agree not to be too angry or take any legal action against Lion Burger should this whole thing go up in flames some day.
  • Follow us on Twitter for updates.
I agree, close this message
Sign up to create your own snipts, or login.

Latest 100 public snipts » sahil's snipts » inputrc The latest inputrc snipts from sahil.

showing 1-1 of 1 snipts for inputrc
  • Inputrc for bash history completion using up/down arrows
    # By default up/down are bound to previous-history  
    # and next-history respectively. The following does the  
    # same but gives the extra functionality where if you  
    # type any text (or more accurately, if there is any text  
    # between the start of the line and the cursor),  
    # the subset of the history starting with that text  
    # is searched (like 4dos for e.g.).  
    # Note to get rid of a line just Ctrl-C  
    "\e[B": history-search-forward  
    "\e[A": history-search-backward  
      
    $if Bash  
      # F10 toggles mc on and off  
      # Note Ctrl-o toggles panes on and off in mc  
      "\e[21~": "mc\C-M"  
      
      #do history expansion when space entered  
      Space: magic-space  
    $endif  
      
    # Include system wide settings which are ignored  
    # by default if one has their own .inputrc  
    $include /etc/inputrc 
    

    copy | embed

    0 comments - tagged in  posted by sahil on Apr 30, 2009 at 2:40 p.m. EDT
Sign up to create your own snipts, or login.