Last active
March 6, 2023 19:48
-
-
Save jonathanhculver/50cfada010e04c0396e7fcf01ce35f0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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