From 7c90213f5eaee7e0b4ef8e63dc6cf9e4b080be96 Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Mon, 13 Mar 2017 18:21:36 +0100 Subject: config/bashrc: fixes Change-Id: Iace86a5d7c6d75bf0151c63c4ba4adea3584230a Signed-off-by: Stephane Desneux --- INSTALL/config/bashrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'INSTALL/config') diff --git a/INSTALL/config/bashrc b/INSTALL/config/bashrc index a8222a0..927c745 100644 --- a/INSTALL/config/bashrc +++ b/INSTALL/config/bashrc @@ -68,8 +68,8 @@ if [ "$PS1" ]; then git_status="$(git status 2> /dev/null)" # Set color based on clean/staged/dirty. - status_pattern="working (tree|directory) clean" - if [[ ${git_status} =~ ${status_pattern} ]]; then + clean_pattern="working (directory|tree) clean" + if [[ ${git_status} =~ ${clean_pattern} ]]; then state="${GREEN}" elif [[ ${git_status} =~ "Changes to be committed" ]]; then state="${YELLOW}" @@ -177,6 +177,7 @@ if [ "$PS1" ]; then alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias grep='grep --color=auto' + function gvim() { command gvim "$@" 2>/dev/null; } fi -- cgit