diff options
author | 2017-03-13 18:21:36 +0100 | |
---|---|---|
committer | 2017-03-13 18:21:36 +0100 | |
commit | 7c90213f5eaee7e0b4ef8e63dc6cf9e4b080be96 (patch) | |
tree | 53b8a5edb95c728321eab9a4a1f5d160c719d1c3 /INSTALL/config | |
parent | 0bc4bd086fe1991b9ae4a78e03d801c589403e8e (diff) |
config/bashrc: fixes
Change-Id: Iace86a5d7c6d75bf0151c63c4ba4adea3584230a
Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'INSTALL/config')
-rw-r--r-- | INSTALL/config/bashrc | 5 |
1 files changed, 3 insertions, 2 deletions
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 |