mirror of
https://github.com/kastdeur/dotfiles.git
synced 2024-12-22 01:03:35 +01:00
[bash] fix 'grep: warning stray \ before #'
This commit is contained in:
parent
ff06c1478a
commit
efa88e6963
1 changed files with 2 additions and 2 deletions
|
@ -230,7 +230,7 @@ function git_status() {
|
||||||
|
|
||||||
### Test For Changes ### {{{
|
### Test For Changes ### {{{
|
||||||
## Change this to test for 'ahead' or 'behind'!
|
## Change this to test for 'ahead' or 'behind'!
|
||||||
local GChanges="$(echo ${GStat} | tr ':' '\n' | grep -v "^$" | grep -v "^\#\#" | wc -l | tr -d ' ')"
|
local GChanges="$(echo ${GStat} | tr ':' '\n' | grep -v "^$" | grep -v "^##" | wc -l | tr -d ' ')"
|
||||||
if [ "$GChanges" == "0" ]; then
|
if [ "$GChanges" == "0" ]; then
|
||||||
local GitCol=$Gre
|
local GitCol=$Gre
|
||||||
else
|
else
|
||||||
|
@ -271,7 +271,7 @@ function git_status() {
|
||||||
PS1+="${Pur}≠${RCol}${GMod}" # Modified
|
PS1+="${Pur}≠${RCol}${GMod}" # Modified
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local GUnt="$(echo ${GStat} | tr ':' '\n' | grep -c "^\?")"
|
local GUnt="$(echo ${GStat} | tr ':' '\n' | grep -c "^?")"
|
||||||
if [ "$GUnt" -gt "0" ]; then
|
if [ "$GUnt" -gt "0" ]; then
|
||||||
PS1+="${Yel}?${RCol}${GUnt}" # Untracked
|
PS1+="${Yel}?${RCol}${GUnt}" # Untracked
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue