mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2026-11-21 16:03:07 +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:
1 parent
5296d6c29e
commit
4c13e6b718
1 file changed
+5
-1
@@ -138,7 +138,11 @@ prompt_git() {
|
||||
|
||||
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user