From 2c3b0dc32b81991eb4901deb2909d2aaf985901b Mon Sep 17 00:00:00 2001 From: xyz Date: Tue, 14 Dec 2021 03:15:25 -0800 Subject: mv .inputrc to default location, bash does not follow INPUTRC env when in tty, maybe bug --- home/xyz/.config/readline/inputrc | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 home/xyz/.config/readline/inputrc (limited to 'home/xyz/.config/readline') diff --git a/home/xyz/.config/readline/inputrc b/home/xyz/.config/readline/inputrc deleted file mode 100644 index b686fd80..00000000 --- a/home/xyz/.config/readline/inputrc +++ /dev/null @@ -1,39 +0,0 @@ -$include /etc/inputrc - -# from archwiki realine -# Color files by types -# Note that this may cause completion text blink in some terminals (e.g. xterm). -set colored-stats On -# Append char to indicate type -set visible-stats On -# Mark symlinked directories -set mark-symlinked-directories On -# Color the common prefix -set colored-completion-prefix On -# Color the common prefix in menu-complete -set menu-complete-display-prefix On - -set editing-mode vi - -# https://github.com/LukeSmithxyz/voidrice/blob/2440ad83e9e9cf2f927efbaef618513e0df3cbda/.config/shell/inputrc -$if mode=vi - - set show-mode-in-prompt on - set vi-ins-mode-string \1\e[6 q\2 - set vi-cmd-mode-string \1\e[2 q\2 - - #set keymap vi-command - # depreciated - # shell-expand-line expand all subshell `$()`? not perfect but ok - # if there's " or ', then after \\z the " and ' will be gone because shell-expand-line - # a lot of bugs compare to fzf's key-bindings.bash approach with `bind -x` - # zsh approach seems not easy too - # so I choose to just use a posix sh script - #"\\e": shell-expand-line - # https://unix.stackexchange.com/questions/439280/is-there-a-way-to-define-a-bash-readline-command - #"\\z": "a $(zoxide query -i)\e\\e" - - set keymap vi-insert - "\C-l": clear-screen - -$endif -- cgit v1.2.3-70-g09d2