Skip to content

Instantly share code, notes, and snippets.

@kiyui
Last active February 19, 2016 08:00
Show Gist options
  • Save kiyui/c17c39584153bd5d0b9a to your computer and use it in GitHub Desktop.
Save kiyui/c17c39584153bd5d0b9a to your computer and use it in GitHub Desktop.
timur.zsh-theme
# 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