aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Herlédan <sylvain.herledan@hrafnagud.info>2017-08-09 22:19:51 +0200
committerSylvain Herlédan <sylvain.herledan@hrafnagud.info>2017-08-09 22:19:51 +0200
commitd7f22b8b89fa8a535a8e7f96b82aec893c941fae (patch)
tree08c27ce2c7c94199b766a51520bcf9b33f342c1c
parent150dda684639c26d542f71e1f3b35a6c7ad68137 (diff)
downloaddotfiles-d7f22b8b89fa8a535a8e7f96b82aec893c941fae.tar.gz
dotfiles-d7f22b8b89fa8a535a8e7f96b82aec893c941fae.tar.bz2
dotfiles-d7f22b8b89fa8a535a8e7f96b82aec893c941fae.zip
Add readline configuration file.
-rw-r--r--inputrc58
-rwxr-xr-xsetup.sh5
2 files changed, 63 insertions, 0 deletions
diff --git a/inputrc b/inputrc
new file mode 100644
index 0000000..bf18cfe
--- /dev/null
+++ b/inputrc
@@ -0,0 +1,58 @@
+# Include system-wide settings
+$include /etc/inputrc
+
+# Enable 8bit input
+set meta-flag On
+set input-meta On
+
+# Turns off 8th bit stripping
+set convert-meta Off
+
+# Keep the 8th bit for display
+set output-meta On
+
+# Make sure to split long lines
+set horizontal-scroll-mode Off
+
+# Disable bell (none|visible|audible)
+set bell-style none
+
+# Display colors for completion candidates
+set colored-stats On
+
+# Ignore case for auto-completion
+set completion-ignore-case On
+
+# Show ellipsis when there are more than 3 common characters
+set completion-prefix-display-length 3
+
+# Append a slash to symlinks targetting a directory
+set mark-symlinked-directories On
+
+# Display completion options immediately (no bell) when there are several
+# candidates
+set show-all-if-ambiguous On
+
+# Display completion options immediately (no bell) when there are several
+# candidates but no partial completion can be made
+set show-all-if-unmodified On
+
+# Append a character which indicates the file type (directory, symlink) for
+# each completion option.
+set visible-stats On
+
+# Key mappings for Linux console
+"\C-p": history-search-backward
+"\C-n": history-search-forward
+"\eOd": backward-word
+"\eOc": forward-word
+"\e[1~": beginning-of-line
+"\e[4~": end-of-line
+"\e[5~": beginning-of-history
+"\e[6~": end-of-history
+"\e[3~": delete-char
+"\e[2~": quoted-insert
+
+# Xterm-specific
+"\eOH": beginning-of-line
+"\eOF": end-of-line
diff --git a/setup.sh b/setup.sh
index c12f717..a4ec9d9 100755
--- a/setup.sh
+++ b/setup.sh
@@ -185,6 +185,9 @@ create_symlinks()
rm -rf "${install_dir}/.config/htop"
ln -sfT "${cfg_dir}/htop" "${install_dir}/.config/htop"
+
+ rm -rf "${install_dir}/.inputrc"
+ ln -sfT "${cfg_dir}/inputrc" "${install_dir}/.inputrc"
}
# Directory creation ----------------------------------------------------------
@@ -257,6 +260,8 @@ copy_files()
"${dst_dir}/.local/config/htop/htoprc"
cp -r "${src_dir}/bin/sshot.sh" \
"${dst_dir}/.local/bin/sshot.sh"
+ cp -r "${src_dir}/inputrc" \
+ "${dst_dir}/.local/config/inputrc"
if [ -d "${src_dir}/hosts/$(hostname)" ];
then