Skip to content

Instantly share code, notes, and snippets.

@ZoltonMD
Created April 25, 2022 17:45
Show Gist options
  • Save ZoltonMD/d2e7e34c26513fbae708ad8e257f471c to your computer and use it in GitHub Desktop.
Save ZoltonMD/d2e7e34c26513fbae708ad8e257f471c to your computer and use it in GitHub Desktop.
Disable git prompt info in oh-my-zsh theme
function _git_prompt_info {
# Possibility to disable git_prompt_info in repos when it is not needed
[ "$(git config prompt.hide)" = "true" ] && return
echo "$(git_prompt_info)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment