From b0136d1dd54e1c78b4b2a1645f705e21aca8c5ab Mon Sep 17 00:00:00 2001 From: Maxim Likhachev Date: Thu, 20 Aug 2020 16:38:00 +0300 Subject: [PATCH] bash: git status with icon --- etc/shell/bash/bashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/shell/bash/bashrc b/etc/shell/bash/bashrc index f28fc65..3aa6fd9 100755 --- a/etc/shell/bash/bashrc +++ b/etc/shell/bash/bashrc @@ -1,6 +1,6 @@ #!/bin/bash #################################################################### # -# Изменён: Чт 30 июл 2020 20:38:07 +# Изменён: чт 20 авг 2020 16:36:56 # ################################################################################ @@ -225,7 +225,7 @@ __prompt_command() { # Сокращение текущей директории. В отличие от PROMPT_DIRTRIM выводит две директории в начале пути local PS1_PWD=$(pwd | sed 's@'$HOME'@~@; s@^\(\([~/][^/]*\)\{2\}/\).*\(\(/[^/]*\)\{2\}\)$@\1...\3@') - local PS1_GIT=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/:\1/') + local PS1_GIT=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/  \1/') local PS1_PATH="─[${red}${VIFM_SHELL}${yellow}${PS1_PWD}${PROMPT_COLOR}${magenta}${PS1_GIT}${PROMPT_COLOR}]"