From 38bab29776950ac2364ed64195b89887717c33de Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 1 Jan 1970 03:00:00 +0300 Subject: chore: init --- readline/.inputrc | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ readline/@install | 7 ++++++ 2 files changed, 72 insertions(+) create mode 100644 readline/.inputrc create mode 100755 readline/@install (limited to 'readline') diff --git a/readline/.inputrc b/readline/.inputrc new file mode 100644 index 0000000..d789713 --- /dev/null +++ b/readline/.inputrc @@ -0,0 +1,65 @@ +$include /etc/inputrc + +set bell-style visible +set bind-tty-special-chars off +set blink-matching-paren on +set colored-completion-prefix on +set colored-stats on +set completion-ignore-case on +set convert-meta off +set echo-control-characters off +set editing-mode vi +set input-meta on +set mark-symlinked-directories on +set match-hidden-files off +set menu-complete-display-prefix on +set meta-flag on +set output-meta on +set page-completions on +set show-all-if-ambiguous on +set show-all-if-unmodified on +set show-mode-in-prompt on +set visible-stats on + +$if mode=emacs + "\e[1~": beginning-of-line + "\e[4~": end-of-line + "\e[5C": forward-word + "\e[5D": backward-word + "\e[3~": delete-char + "\e[5~": history-search-backward + "\e[6~": history-search-forward + "\t": menu-complete +$endif + +$if mode=vi + set keymap vi-command + "^": beginning-of-line + "$": end-of-line + "w": forward-word + "b": backward-word + "x": delete-char + "k": history-search-backward + "j": history-search-forward + "?": reverse-search-history + "/": forward-search-history + "gg": beginning-of-history + "G": end-of-history + + set keymap vi-insert + "\C-l": clear-screen + "\C-w": backward-kill-word + "\C-a": beginning-of-line + "\C-e": end-of-line + "\C-p": history-search-backward + "\C-n": history-search-forward + "\t": menu-complete +$endif + +$if term=linux + set vi-ins-mode-string \1\e[?0c\2 + set vi-cmd-mode-string \1\e[?8c\2 +$else + set vi-ins-mode-string \1\e[6 q\2 + set vi-cmd-mode-string \1\e[2 q\2 +$endif diff --git a/readline/@install b/readline/@install new file mode 100755 index 0000000..9a0d78d --- /dev/null +++ b/readline/@install @@ -0,0 +1,7 @@ +#!/bin/sh + +stow \ + --target="${HOME}" \ + --ignore="^@.*" \ + --verbose \ + readline -- cgit 1.4.1