Skip to content

Instantly share code, notes, and snippets.

@nickcheng
Last active August 30, 2018 01:03
Show Gist options
  • Save nickcheng/cd9102bac13bc047dead8555a77e300a to your computer and use it in GitHub Desktop.
Save nickcheng/cd9102bac13bc047dead8555a77e300a to your computer and use it in GitHub Desktop.
[git-radar prompt setting in .zshrc] #zsh #on-my-zsh #git
# git-radar
# Installation: brew install michaeldfallen/formula/git-radar
# Source: https://github.com/michaeldfallen/git-radar
export PROMPT='
%{$fg_bold[white]%}%T%{$reset_color%}\
%{$fg[cyan]%} %n%{$reset_color%}\
%{$fg_bold[green]%} %d%{$reset_color%}\
$(git-radar --zsh --fetch) \
%{$fg[white]%}[%*] $exit_code
%{$terminfo[bold]$fg[red]%}$ %{$reset_color%}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment