From a0623df37f32451978ac5f69fd44b1eaf7348bc2 Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Tue, 18 Feb 2020 14:50:18 +0300 Subject: [PATCH] =?UTF-8?q?bash:=20=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B8=D0=BD=D0=B4=D0=B8=D0=BA=D0=B0=D1=82=D0=BE?= =?UTF-8?q?=D1=80=20=D1=80=D0=B5=D0=B6=D0=B8=D0=BC=D0=B0=20vi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/shell/bash/bashrc_linux | 2 +- etc/shell/bash/inputrc | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/etc/shell/bash/bashrc_linux b/etc/shell/bash/bashrc_linux index 1b0de4d..68b9f87 100644 --- a/etc/shell/bash/bashrc_linux +++ b/etc/shell/bash/bashrc_linux @@ -16,5 +16,5 @@ path++ /bin:/usr/bin:/usr/local/bin PATH # export LS_COLORS=$($BASHRC/ls_colors_generator.py) export LS_COLORS=$(cat $BASHRC/ls_colors_generated) -PS1="$PROMPT_COLOR┌─[$yellow\h$PROMPT_COLOR]─(${yellow}\j${PROMPT_COLOR})$PROMPT_SHH─[$yellow\w$PROMPT_COLOR]\n$PROMPT_COLOR└─[$PROMPT_COLOR\t]\$ $rstc" +PS1="$PROMPT_COLOR┌─(${yellow}\j${PROMPT_COLOR})─[$yellow\h$PROMPT_COLOR]$PROMPT_SHH─[$yellow\w$PROMPT_COLOR]\n$PROMPT_COLOR─[$PROMPT_COLOR\t]\$ $rstc" diff --git a/etc/shell/bash/inputrc b/etc/shell/bash/inputrc index 8ab3278..f5ef703 100644 --- a/etc/shell/bash/inputrc +++ b/etc/shell/bash/inputrc @@ -43,8 +43,7 @@ set convert-meta Off set output-meta On #Горизонтальная сортировка автодополнения -# set print-completions-horizontally On -set horizontal-scroll-mode On +set print-completions-horizontally On #Игнорирование регистра при автодополнении set completion-ignore-case On @@ -81,10 +80,6 @@ set match-hidden-files Off #Автоматическая подстановка директорий в cd # set autocd on -set editing-mode vi -set keymap vi-command -set show-mode-in-prompt off - # Color files by types set colored-stats On # Append char to indicate type @@ -94,3 +89,12 @@ set mark-symlinked-directories On # Color the common prefix in menu-complete set menu-complete-display-prefix On +#### VI MODE + +set editing-mode vi +set keymap vi-command +set show-mode-in-prompt on + +set vi-ins-mode-string "\1\e[32;1m\2└─\1\e[34;1m\2(I)\1\e[0m\2" +set vi-cmd-mode-string "\1\e[32;1m\2└─\1\e[31;1m\2[N]\1\e[0m\2" +