diff options
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 |