mirror of
https://github.com/Cornelicorn/bullet-train.zsh.git
synced 2025-12-06 03:40:41 +01:00
Hide git prompt completely if git config flag "oh-my-zsh.hide-status" is set (#184)
* Hide git prompt if git config flag "oh-my-zsh.hide-status" is set * Add documentation about the `oh-my-zsh.hide-status` git config flag
This commit is contained in:
committed by
Caio Gondim
parent
246aa809a9
commit
09b5d897a0
@@ -357,6 +357,10 @@ prompt_custom() {
|
||||
|
||||
# Git
|
||||
prompt_git() {
|
||||
if [[ "$(command git config --get oh-my-zsh.hide-status 2>/dev/null)" == "1" ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
local ref dirty mode repo_path git_prompt
|
||||
repo_path=$(git rev-parse --git-dir 2>/dev/null)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user