Skip to content

Instantly share code, notes, and snippets.

@shmup
Forked from gregorynicholas/.inputrc
Created November 10, 2012 04:46
Show Gist options
  • Save shmup/4049945 to your computer and use it in GitHub Desktop.
Save shmup/4049945 to your computer and use it in GitHub Desktop.
OSX .inputrc to make terminal way better. and by better i mean i'm naked
# Two escapes clear command line.
"\e\e": "\C-a\C-k"
# Tab to menu complete
"\t": menu-complete
# Incremental searching with Up and Down and Left and Right
"\e[A": history-search-backward
"\e[B": history-search-forward
"\e\e[C": forward-word
"\e\e[D": backward-word
set completion-ignore-case On
set expand-tilde on
set convert-meta off
set input-meta on
set mark-directories on
set output-meta on
set show-all-if-ambiguous on
set visible-stats on
set -o vi
$if Bash
#do history expansion when space entered
Space: magic-space
$endif
@gregorynicholas
Copy link

how do i trigger the expansion ...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment