Created
December 31, 2012 19:26
-
-
Save tysonmote/4422134 to your computer and use it in GitHub Desktop.
My ZSH theme, adapted from various other places.
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
# Append the current git branch, if in a git repository | |
local location="%{$fg[cyan]%}%~\$(git_prompt_info)%{$reset_color%}" | |
# Use a % for normal users and a # for privelaged (root) users. | |
local prompt="%{$fg[magenta]%}%(!.#.%%)%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%} %{$fg[green]%}[" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}√" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[green]%}⚡" | |
ZSH_THEME_GIT_PROMPT_UNTRACKED=" %{$fg[green]%}?" | |
ZSH_THEME_GIT_PROMPT_ADDED=" %{$fg[green]%}+" | |
ZSH_THEME_GIT_PROMPT_DELETED=" %{$fg[green]%}-" | |
ZSH_THEME_GIT_PROMPT_RENAMED=" %{$fg[green]%}➜" | |
ZSH_THEME_GIT_PROMPT_UNMERGED=" %{$fg[green]%}⑂" | |
# Put it all together! | |
PROMPT="${location} ${prompt} " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment