Skip to content

Instantly share code, notes, and snippets.

@5hanth
Created February 9, 2016 07:50
Show Gist options
  • Save 5hanth/b50e965dd3a77e54c390 to your computer and use it in GitHub Desktop.
Save 5hanth/b50e965dd3a77e54c390 to your computer and use it in GitHub Desktop.
Simple prompt based on strug.zsh-theme
# Simple prompt based on strug.zsh-theme
PROMPT='
%~ %T
'
local git_branch='$(git_prompt_info)%{$reset_color%}$(git_remote_status)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[yellow]%} "
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%}%{$fg[red]%} ✘ %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%} ✔ %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_DETAILED=true
ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_PREFIX="%{$fg[yellow]%}("
ZSH_THEME_GIT_PROMPT_REMOTE_STATUS_SUFFIX="%{$fg[yellow]%})%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE=" +"
ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE_COLOR=%{$fg[green]%}
ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE=" -"
ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE_COLOR=%{$fg[red]%}
RPROMPT="${git_branch}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment