autoload colors && colors

directory_name() {
  echo "%{$fg_bold[cyan]%}%1/%\/%{$reset_color%}"
}

ret_status() {
  echo "%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
}

git_radar() {
  USE_DEV_RADAR="${USE_DEV_RADAR:-"false"}"
  if [[ $USE_DEV_RADAR == "true" ]]; then
    ~/Projects/personal/git-radar/git-radar --zsh --fetch
  else
    git-radar --zsh --fetch
  fi
}

export PROMPT=$'$(ret_status)$(directory_name)$(git_radar) '
set_prompt () {
  export RPROMPT="%{$fg_bold[cyan]%}%{$reset_color%}"
}

precmd() {
  title "zsh" "%m" "${PWD##*/}"
  set_prompt
}

preexec() {
  title "zsh" "%m" "${PWD##*/} - $2"
}

autoload colors && colors

directory_name() {
  echo "%{$fg_bold[cyan]%}%1/%\/%{$reset_color%}"
}

ret_status() {
  echo "%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
}

export PROMPT=$'$(ret_status)$(directory_name)$(git-radar --zsh --fetch) '
set_prompt () {
  export RPROMPT="%{$fg_bold[cyan]%}%{$reset_color%}"
}

precmd() {
  title "zsh" "%m" "${PWD##*/}"
  set_prompt
}

preexec() {
  title "zsh" "%m" "${PWD##*/} - $2"
}

--- 
+++ 
@@ -8,16 +8,7 @@
   echo "%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ %s)"
 }
 
-git_radar() {
-  USE_DEV_RADAR="${USE_DEV_RADAR:-"false"}"
-  if [[ $USE_DEV_RADAR == "true" ]]; then
-    ~/Projects/personal/git-radar/git-radar --zsh --fetch
-  else
-    git-radar --zsh --fetch
-  fi
-}
-
-export PROMPT=$'$(ret_status)$(directory_name)$(git_radar) '
+export PROMPT=$'$(ret_status)$(directory_name)$(git-radar --zsh --fetch) '
 set_prompt () {
   export RPROMPT="%{$fg_bold[cyan]%}%{$reset_color%}"
 }
Make developing git-radar super easy
