Created
March 21, 2013 05:56
-
-
Save narenranjit/5210966 to your computer and use it in GitHub Desktop.
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
# https://github.com/blinks zsh theme | |
function _prompt_char() { | |
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then | |
echo "%{%F{blue}%}±%{%f%k%b%}" | |
else | |
echo ' ' | |
fi | |
} | |
ZSH_THEME_GIT_PROMPT_PREFIX=" [%{%B%F{blue}%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{%f%k%b%K{black}%B%F{green}%}]" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %{%F{red}%}*%{%f%k%b%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" | |
PROMPT='%{%f%k%b%} | |
%{%K{black}%B%F{green}%}%{%B%F{blue}%}%{%B%F{cyan}%}%{%B%F{green}%} %{%b%F{yellow}%K{black}%}%~%{%B%F{green}%}$(git_prompt_info)%E%{%f%k%b%} | |
%{%K{black}%}$(_prompt_char)%{%K{black}%} ⚡ %{%f%k%b%}' | |
RPROMPT='!%{%B%F{cyan}%}%!%{%f%k%b%}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment