X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.inputrc;h=ee986ae4792a4a1b3032fade861e25581b20530c;hb=f74cdd5fbf0ead8d188607abce07297a9e352460;hp=0e96e0975652e8f5c55d723c375f77ec90c445dc;hpb=f46bd4d41cc7f243bc8a321effee5200aa69e709;p=dotfiles.git diff --git a/.inputrc b/.inputrc index 0e96e09..ee986ae 100644 --- a/.inputrc +++ b/.inputrc @@ -2,14 +2,23 @@ $include /etc/inputrc +set bell-style none +set completion-ignore-case off + set meta-flag on set convert-meta off set input-meta on set output-meta on -set bell-style none -set completion-ignore-case off -set expand-tilde 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,6 +30,11 @@ M-Tab: menu-complete #"\C-h": backward-delete-char #"\e\C-h": backward-kill-word +# PgUp/PgDn - more intelligent Up/Down behavior: use the text that has already +# been typed as the prefix for searching through commands. +"\e[5~": history-search-backward +"\e[6~": history-search-forward + # Debug "\C-xf": dump-functions "\C-xv": dump-variables