diff options
author | Sergey Nazaryev <sergey@nazaryev.ru> | 2015-11-08 07:06:14 +0300 |
---|---|---|
committer | Sergey Nazaryev <sergey@nazaryev.ru> | 2016-12-07 15:18:40 +0300 |
commit | c08548201660447a70c39ef8bfed61c2d0981a52 (patch) | |
tree | 5b8685d2ee137d4c4857b88fd95fc2de5624bfb1 /inputrc | |
download | dotfiles-c08548201660447a70c39ef8bfed61c2d0981a52.zip dotfiles-c08548201660447a70c39ef8bfed61c2d0981a52.tar.gz dotfiles-c08548201660447a70c39ef8bfed61c2d0981a52.tar.bz2 |
Initial release
Diffstat (limited to 'inputrc')
-rw-r--r-- | inputrc | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -0,0 +1,37 @@ +# Make Tab autocomplete regardless of filename case +set completion-ignore-case on + +# List all matches in case multiple possible completions are possible +set show-all-if-ambiguous on + +# If there are more than 200 possible completions for a word, ask to +# show them all +set completion-query-items 200 + +# 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 + +# Don't echo control characters into shell, such as ^C or ^D +set echo-control-characters off + +# Use vi-mode at all readline-based prompts +set editing-mode vi + +$if mode=vi +set keymap vi-insert + +# Use the text that has already been typed as the prefix for +# searching through commands (i.e. more intelligent Up/Down behavior) +"\e[A": history-search-backward +"\e[B": history-search-forward + +# Duplicate last inserted argument in prompt +"\C-e": "\C-w\C-y\C-y\C-h" +$endif |