$include /etc/inputrc $if Bash $if mode=emacs # edit the path "\C-xp": "PATH=${PATH}\e\C-e\C-a\ef\C-f" # prepare to type a quoted word -- # insert open and close double quotes # and move to just after the open quote "\C-x\"": "\"\"\C-e\C-b" # Quote the current or previous word "\C-xq": "\eb\"\ef\"" # Add a binding to refresh the line, which is unbound "\C-xr": redraw-current-line # Add a binding to edit the line in vim "\C-xe": edit-and-execute-command $endif $endif set bell-style none set completion-ignore-case on set completion-query-items 150 set mark-symlinked-directories on set match-hidden-files off set page-completions off set visible-stats on set colored-stats 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