Skip to content

Instantly share code, notes, and snippets.

@yzyzsun
Last active June 12, 2018 06:51
Show Gist options
  • Save yzyzsun/2da604bf116fc4667650b6d07460cac4 to your computer and use it in GitHub Desktop.
Save yzyzsun/2da604bf116fc4667650b6d07460cac4 to your computer and use it in GitHub Desktop.
# fino-time.zsh-theme
# Modified by yzyzsun on 2018-06-12
# Use with a dark background and 256-color terminal.
# Borrowing shamelessly from these oh-my-zsh themes:
# bira
# robbyrussell
#
# Also borrowing from http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/
local base=244
local red=160
local orange=202
local yellow=226
local green=040
local blue=033
local white=255
local current_dir='${PWD/#$HOME/~}'
local git_info='$(git_prompt_info)'
PROMPT="╭─%F{$blue}%n%f %F{$base}in%f %F{$yellow}$current_dir%f $git_info%F{$base}%D %*%f
╰─○ "
RPROMPT="%(?..%F{$red}%? ↵%f)"
ZSH_THEME_GIT_PROMPT_PREFIX="%F{$base}on%f %F{$white}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%f "
ZSH_THEME_GIT_PROMPT_DIRTY="%f%F{$orange}✘"
ZSH_THEME_GIT_PROMPT_CLEAN="%f%F{$green}✔"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment