Last active
August 29, 2015 14:13
My zsh theme
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
local user='%{$fg_bold[green]%}%n@%m%{$reset_color%}' | |
local pwd='%{$fg_bold[blue]%}%~%{$reset_color%}' | |
local return_code='%(?..%{$fg[red]%}%?↵%{$reset_color%})' | |
local git_branch='$(git_prompt_info)$(git_prompt_status)%{$reset_color%}' | |
local privileges='%(!.#.$)' | |
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[magenta]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[blue]%}*%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg_bold[red]%}!%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_bold[green]%}↑%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg_bold[yellow]%}↓%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_STASHED="%{$fg_bold[black]%}#%{$reset_color%}" | |
PROMPT="${user}:${pwd}${privileges} " | |
RPROMPT="${return_code}${git_branch}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment