Skip to content

Instantly share code, notes, and snippets.

@jonathanhculver
Last active March 6, 2023 19:48
Show Gist options
  • Save jonathanhculver/50cfada010e04c0396e7fcf01ce35f0b to your computer and use it in GitHub Desktop.
Save jonathanhculver/50cfada010e04c0396e7fcf01ce35f0b to your computer and use it in GitHub Desktop.
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}"
# Customized git status
git_custom_status() {
local cb=$(git_current_branch)
if [ -n "$cb" ]; then
echo "$(parse_git_dirty)[$cb]"
fi
}
PROMPT='$(git_custom_status)%{$FG[005]%} %~% \$ %{$reset_color%}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment