aboutsummaryrefslogtreecommitdiff
path: root/bash/dot-inputrc
diff options
context:
space:
mode:
authorMohammad Reza Karimi <m.r.karimi.j@gmail.com>2025-12-16 13:27:11 -0500
committerMohammad Reza Karimi <m.r.karimi.j@gmail.com>2025-12-16 13:27:11 -0500
commit5a41da5881a11ba3fdc3890c342aa3b7eb53e0cf (patch)
tree92b7f7af29ed4a9dcc0eab33490c6225cce9b14a /bash/dot-inputrc
parent856e361d56c201cbb1b1521c8b93b747163b1376 (diff)
add initial version (incomplete)
Diffstat (limited to 'bash/dot-inputrc')
-rw-r--r--bash/dot-inputrc37
1 files changed, 37 insertions, 0 deletions
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