Find file
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (38 sloc) 1.43 KB
# Case-insensitive filesystems be damned
set completion-ignore-case on
# Hyphen can be used to complete underscores
set completion-map-case on
# Completion when in middle of word doesn't duplicate existing input.
# Like many useful things, seems unsupported in OS X editline.
set skip-completed-text On
# Automatically complete directory symlinks with ending /
# Also offers them for `complete -d` like cd & pushd
set mark-symlinked-directories on
# Show completions immediately if multiple matches
set show-all-if-ambiguous on
set show-all-if-unmodified on
# With multiple matches, only show the remaining part.
# Unsupported in OS X editline >:-(
set completion-prefix-display-length 2
"\C-x\C-r": re-read-init-file
# Cycle through available completions
"\ej": menu-complete
# "\ek": menu-complete-backward
# For OS X / bash < 4 :-/
"\ek": "\e-1\ej"
# Default Ctrl-w to stop at punctuation
"\C-w": unix-filename-rubout
"\C-x\C-w": unix-word-rubout
# Up/Down will use history search for what's typed so far.
# Ctrl-p/n still cycle dumbly.
"\e[A": history-search-backward
"\e[B": history-search-forward
# Need to kill -9 a thing that didn't die? Grep directory when you forgot -r?
# Hat tip:
"\eo": "\C-p\C-a\ef "
# Call method in IRB. See .irbrc
$if Ruby
"\C-x\C-p": "toggle_object_complete\n"
"\C-x\C-h": "Hirb::View.toggle_formatter\n"
"\C-x\C-l": "toggle_db_logging\n"