Created
March 7, 2018 06:16
-
-
Save googolmo/5d2b31277715ff479cd004d178c49093 to your computer and use it in GitHub Desktop.
config for oh_my_zsh
This file contains 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 | |
# This theme works with both the "dark" and "light" variants of the | |
# Solarized color schema. Set the SOLARIZED_THEME variable to one of | |
# these two values to choose. If you don't specify, we'll assume you're | |
# using the "dark" variant. | |
case ${SOLARIZED_THEME:-dark} in | |
light) bkg=white;; | |
*) bkg=black;; | |
esac | |
function virtualenv_prompt_info(){ | |
[[ -n ${VIRTUAL_ENV} ]] || return | |
echo "${ZSH_THEME_VIRTUALENV_PREFIX:=(}${VIRTUAL_ENV:t}${ZSH_THEME_VIRTUALENV_SUFFIX:=) }" | |
} | |
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
ZSH_THEME_GIT_PROMPT_PREFIX=" [%{%B%F{blue}%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{%f%k%b%K{${bkg}}%B%F{green}%}]" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %{%F{red}%}*%{%f%k%b%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" | |
PROMPT='%{%f%k%b%} | |
%{%K{${bkg}}%B%F{green}%}%n%{%B%F{blue}%} %{%b%F{yellow}%K{${bkg}}%}%~%{%B%F{green}%}$(git_prompt_info)%E%{%f%k%b%} | |
%{%B%F{white}%}$(virtualenv_prompt_info)$ret_status %E%{%f%k%b%}' | |
# RPROMPT='!%{%B%F{cyan}%}%!%{%f%k%b%}' | |
RPROMPT='' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment