Browse Source

bash, vifm: Индикация vifm-оболочки в prompt

Maxim Likhachev 5 years ago
parent
commit
58458a971b
  1. 11
      etc/shell/bash/bashrc_linux
  2. 2
      etc/soft/vifm/vifmrc

11
etc/shell/bash/bashrc_linux

@ -16,5 +16,14 @@ path++ /bin:/usr/bin:/usr/local/bin PATH @@ -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

2
etc/soft/vifm/vifmrc

@ -55,6 +55,8 @@ set statusline=" %t %T%= %1* 廬%A %2* %u:%-g %3*%7E %4* %5*%14d %6* @@ -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

Loading…
Cancel
Save