# Based on nebirhos zsh theme, moving things around adding n and npm support
# Currently not handling non-git paths in a pretty way.
# Based on robbyrussell's theme, with host, node, and npm indicators. Example:
# @KB ➜ /Users/USERNAME/workspace/gitProjectDir
# # : git:(feature-branch)
# ✓✓✓ :

italic="%{%}"
no_italic="%{%}"

# Formats non-git directories (kindof).
HOST_PROMPT_="%{$fg_bold[cyan]%}@%n➜ %{$fg_bold[yellow]%}%d"$'\n'"###%{$reset_color%}:"

GIT_PROMPT_="%{$fg_bold[blue]%}\$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}"
NODE_PROMPT_="%{$fg_bold[blue]%}node:(%{$fg[green]%}$(node_prompt_info)%{$fg_bold[blue]%})%{$reset_color%}"
NPM_PROMPT_="%{$fg_bold[blue]%}npm:(%{$fg[green]%}$(npm_prompt_info)%{$fg_bold[blue]%}) %{$reset_color%}"
YARN_PROMPT_="%{$fg_bold[blue]%}yarn:(%{$fg[green]%}$(yarn_prompt_info)%{$fg_bold[blue]%}) %{$reset_color%}"

ZSH_THEME_GIT_PROMPT_PREFIX=" git:($italic%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})$no_italic %{$fg[red]%}"$'\n'"✗✗✗%{$reset_color%}:"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})$no_italic %{$fg[green]%}"$'\n'"✓✓✓%{$reset_color%}:"

PROMPT="$HOST_PROMPT_$GIT_PROMPT_"
RPROMPT="$NPM_PROMPT_$YARN_PROMPT_$NODE_PROMPT_"