path: root/readline
diff options
authorTom Ryder <tom@sanctum.geek.nz>2013-08-22 00:48:16 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-22 00:48:16 +1200
commit3ab745095836ca84a510b3f8db372d500c1eed76 (patch)
tree90a1a3a9dce391e98090cf4b3c0f55b2ee500e94 /readline
parentStandardise use of printf (diff)
Add comments to ~/.inputrc
Diffstat (limited to 'readline')
1 files changed, 33 insertions, 7 deletions
diff --git a/readline/inputrc b/readline/inputrc
index bbdf53e1..78e68c74 100644
--- a/readline/inputrc
+++ b/readline/inputrc
@@ -1,10 +1,36 @@
+# Never ring any sort of bell during line reading
set bell-style none
-set completion-ignore-case on
-set completion-map-case on
+# Ignore case when matching and completing paths
+set completion-ignore-case On
+# Treat underscores and hyphens the same way for completion purposes
+set completion-map-case On
+# Show me up to 5,000 completion items, don't be shy
set completion-query-items 5000
-set echo-control-characters off
+# Don't display control characters like ^C if I input them
+set echo-control-characters Off
+# Use Emacs-style bindings
set editing-mode emacs
-set expand-tilde on
-set mark-symlinked-directories on
-set page-completions off
-set show-all-if-ambiguous on
+# Expand tilde to full path on completion
+set expand-tilde On
+# When completing directories, add a trailing slash
+set mark-directories On
+# Do the same for symlinked directories
+set mark-symlinked-directories On
+# Don't paginate possible completions
+set page-completions Off
+# Read completions left to right like ls(1)
+set print-completions-horizontally On
+# Show multiple completions on first tab press
+set show-all-if-ambiguous On