Last active
February 19, 2016 08:00
-
-
Save kiyui/c17c39584153bd5d0b9a to your computer and use it in GitHub Desktop.
timur.zsh-theme
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
# TIMUR ZSH Theme | |
function directory_information { | |
if [[ -f .on_cd ]] | |
then | |
if [[ -f .on_cd_lock ]] | |
then | |
echo " " | |
else | |
echo " " | |
fi | |
fi | |
} | |
function return_value { | |
if [[ $? == 0 ]] | |
then | |
echo "%{$fg[white]%}$?%{$reset_color%}" | |
else | |
echo "%{$fg[red]%}$?%{$reset_color%}" | |
fi | |
} | |
PROMPT='╭─ ─%n─%m%{$fg[red]%} %d%{$reset_color%} | |
╰─$(git_prompt_info)$(directory_information)%{$reset_color%} ' | |
RPROMPT='($(return_value))' | |
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[green]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}%{$reset_color%}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment