mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 20:00:38 +01:00
Add option to show extended git status information.
Add an option 'BULLETTRAIN_GIT_STATUS' to allow user to show extended git repo status; e.g. added, modified, deleted files instead of just clean/dirty.
This commit is contained in:
@@ -138,7 +138,11 @@ prompt_git() {
|
|||||||
|
|
||||||
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
|
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
|
||||||
prompt_segment $BULLETTRAIN_GIT_BG $BULLETTRAIN_GIT_FG
|
prompt_segment $BULLETTRAIN_GIT_BG $BULLETTRAIN_GIT_FG
|
||||||
echo -n $(git_prompt_info)
|
if [[ $BULLETTRAIN_GIT_STATUS == true ]] then
|
||||||
|
echo -n $(git_prompt_info)$(git_prompt_status)
|
||||||
|
else
|
||||||
|
echo -n $(git_prompt_info)
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user