From 58458a971bae5e3bf0912d049ef183c61e127fae Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Tue, 18 Feb 2020 15:10:02 +0300 Subject: [PATCH] =?UTF-8?q?bash,=20vifm:=20=D0=98=D0=BD=D0=B4=D0=B8=D0=BA?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20vifm-=D0=BE=D0=B1=D0=BE=D0=BB=D0=BE?= =?UTF-8?q?=D1=87=D0=BA=D0=B8=20=D0=B2=20prompt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/shell/bash/bashrc_linux | 11 ++++++++++- etc/soft/vifm/vifmrc | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/etc/shell/bash/bashrc_linux b/etc/shell/bash/bashrc_linux index 68b9f87..3b660e5 100644 --- a/etc/shell/bash/bashrc_linux +++ b/etc/shell/bash/bashrc_linux @@ -16,5 +16,14 @@ 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}\j${PROMPT_COLOR})─[$yellow\h$PROMPT_COLOR]$PROMPT_SHH─[$yellow\w$PROMPT_COLOR]\n$PROMPT_COLOR─[$PROMPT_COLOR\t]\$ $rstc" +PS1_JOBS="${PROMPT_COLOR}┌─(${yellow}\j${PROMPT_COLOR})" +PS1_HOST="─[${yellow}\h${PROMPT_COLOR}]${PROMPT_SHH}" +PS1_CWD="─[${red}${VIFM_SHELL}${yellow}\w${PROMPT_COLOR}]\n" + +PS1_LINE1="${PS1_JOBS}${PS1_HOST}${PS1_CWD}" +PS1_LINE2="${PROMPT_COLOR}─[${PROMPT_COLOR}\t]\$ $rstc" + +PS1="${PS1_LINE1}${PS1_LINE2}" + +unset PS1_JOBS PS1_HOST PS1_CWD PS1_LINE1 PS1_LINE2 diff --git a/etc/soft/vifm/vifmrc b/etc/soft/vifm/vifmrc index e79104a..38f515c 100644 --- a/etc/soft/vifm/vifmrc +++ b/etc/soft/vifm/vifmrc @@ -55,6 +55,8 @@ set statusline=" %t %T%= %1* 廬%A %2*  %u:%-g %3*%7E %4* %5*%14d %6* set slowfs=curlftpfs +let $VIFM_SHELL = 'VIFM: ' + source ~/.vifm/marks source ~/.vifm/filetypes source ~/.vifm/commands