Skip to content

Commit 569574b

Browse files
committed
Merge pull request #246 from jhalfmoon/fix/deletedcount-and-lastcommandcolor
fix deleted item count and fix last_command_indicator coloring
2 parents b3f4d82 + 61cd6ae commit 569574b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

gitprompt.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ function updatePrompt() {
518518
NEW_PROMPT="$EMPTY_PROMPT"
519519
fi
520520

521-
PS1="${NEW_PROMPT//_LAST_COMMAND_INDICATOR_/${LAST_COMMAND_INDICATOR}}"
521+
PS1="${NEW_PROMPT//_LAST_COMMAND_INDICATOR_/${LAST_COMMAND_INDICATOR}${ResetColor}}"
522522
}
523523

524524
# Helper function that returns virtual env information to be set in prompt

gitstatus.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ while IFS='' read -r line || [[ -n "$line" ]]; do
2929
case "$status" in
3030
\#\#) branch_line="${line/\.\.\./^}" ;;
3131
?M) ((num_changed++)) ;;
32+
?D) ((num_changed++)) ;;
3233
U?) ((num_conflicts++)) ;;
3334
\?\?) ((num_untracked++)) ;;
3435
*) ((num_staged++)) ;;

0 commit comments

Comments
 (0)