From 5a41da5881a11ba3fdc3890c342aa3b7eb53e0cf Mon Sep 17 00:00:00 2001 From: Mohammad Reza Karimi Date: Tue, 16 Dec 2025 13:27:11 -0500 Subject: add initial version (incomplete) --- bash/dot-inputrc | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 bash/dot-inputrc (limited to 'bash/dot-inputrc') diff --git a/bash/dot-inputrc b/bash/dot-inputrc new file mode 100644 index 0000000..f34320a --- /dev/null +++ b/bash/dot-inputrc @@ -0,0 +1,37 @@ +$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 -- cgit v1.2.3-71-gdd5e