summaryrefslogtreecommitdiffstats
path: root/.inputrc
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2023-04-25 15:39:16 +0200
committerAhmed Abdelhalim <[email protected]>2023-04-25 15:39:16 +0200
commit416f9c33fb3e4605b3537ea296e8a02cf6156da8 (patch)
tree52c7a6999eac9e5e76d888db8a1889c564f8a918 /.inputrc
parent896f5aee92a5e8b71efea4f57fafab9736aae631 (diff)
Update .inputrc with more functionalities
Diffstat (limited to '.inputrc')
-rw-r--r--.inputrc15
1 files changed, 14 insertions, 1 deletions
diff --git a/.inputrc b/.inputrc
index bf16a0c..38e3216 100644
--- a/.inputrc
+++ b/.inputrc
@@ -1,7 +1,20 @@
-set completion-ignore-case on
+# https://www.gnu.org/software/bash/manual/html_node/Readline-Init-File-Syntax.html
+set colored-stats on
set show-all-if-ambiguous on
+# Ignore case and -/_ on completion
+set completion-ignore-case on
+set completion-map-case on
+
+# completed directory names have a slash appended
+set mark-directories on
+set mark-symlinked-directories on
+
# Use the text that has already been typed as the prefix for searching through
# commands (i.e. more intelligent Up/Down behavior)
"\e[B": history-search-forward
"\e[A": history-search-backward
+
+# Use CTRL+b and CTRL+f to move words rather than the default characters
+"\C-b": backward-word
+"\C-f": forward-word