This file contains hidden or 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
| # Shows little symbol '±' if you're currently at a git repo and '○' all other times | |
| function prompt_char { | |
| git branch >/dev/null 2>/dev/null && echo '±' && return | |
| echo '$' | |
| } | |
| PROMPT=' | |
| %{$fg[blue]%}%n%{$reset_color%} on %{$fg[yellow]%}%m%{$reset_color%} in %{$fg[green]%}%~%b%{$reset_color%} $(git_time_since_commit)$(check_git_prompt_info) | |
| ${vcs_info_msg_0_}$(prompt_char) ' |
NewerOlder