X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.inputrc;h=e0a65608b5cd82a18cd3e97afc8d49c59a8fb7d2;hb=21c29714d2177a9f5995acfa8ecadfcf4255815d;hp=46877d0efa9e415c74b394bcd4ab6f60dbee3b5e;hpb=58869a05fd0f4f38f74b14a340d49cbb5694ca5e;p=dotfiles.git diff --git a/.inputrc b/.inputrc index 46877d0..e0a6560 100644 --- a/.inputrc +++ b/.inputrc @@ -7,9 +7,23 @@ set convert-meta off set input-meta on set output-meta on +# Make Tab autocomplete regardless of filename case +#set completion-ignore-case on + set bell-style none -set completion-ignore-case off -set expand-tilde on +set expand-tilde off +set print-completions-horizontally off +#set show-all-if-ambiguous on + +# Be more intelligent when autocompleting by also looking at the text after +# the cursor. For example, when the current line is "cd ~/src/mozil", and +# the cursor is on the "z", pressing Tab will not autocomplete it to "cd +# ~/src/mozillail", but to "cd ~/src/mozilla". (This is supported by the +# Readline used by Bash 4.) +set skip-completed-text on + +# Show extra file information when completing, like `ls -F` does +set visible-stats on # In all programs, all terminals, make sure this is bound. "\C-x\C-r": re-read-init-file @@ -21,9 +35,14 @@ M-Tab: menu-complete #"\C-h": backward-delete-char #"\e\C-h": backward-kill-word -# PgUp/PgDn -"\e[5~": history-search-backward -"\e[6~": history-search-forward +# PgUp/PgDn - previous/next command in history +"\e[5~": previous-history +"\e[6~": next-history + +# More intelligent Up/Down behavior: use the text that has already +# been typed as the prefix for searching through commands. +"\e[A": history-search-backward +"\e[B": history-search-forward # Debug "\C-xf": dump-functions