Created
December 9, 2016 04:54
-
-
Save jgeorgeson/8ceecc2c4c982ae7a9adead29610a3e3 to your computer and use it in GitHub Desktop.
Zsh theme based off of the YS theme found on the oh-my-zsh project
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
# Clean, simple, compatible and meaningful. | |
# Tested on Linux, Unix and Windows under ANSI colors. | |
# It is recommended to use with a dark background. | |
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white. | |
# | |
# Dec 2016 Justin Georgeson | |
# Modified from "YS" theme by Yad Smood | |
# Git info | |
local git_info='$(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[cyan]%}git%{$fg[blue]%}(" | |
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}DIRTY%{$fg[blue]%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" | |
local exit_code="%(?,,C:%{$fg[red]%}%?%{$reset_color%})" | |
# Prompt format: | |
# | |
# [TIME]>PRIVILEGES USER @ MACHINE in DIRECTORY on git:BRANCH STATE C:LAST_EXIT_CODE | |
# $ COMMAND | |
# | |
# For example: | |
# | |
# > baron@woodhouse in ~/.oh-my-zsh git:(master DIRTY) [21:47:42] | |
# $ | |
PROMPT=" | |
%{$terminfo[bold]$fg[blue]%}[%*]>%{$reset_color%} \ | |
%(#,%{$terminfo[bold]$fg[red]%}%n@%m,%{$fg[green]%}%n@%m)\ | |
%{$reset_color%} \ | |
%{$fg[white]%}in \ | |
%{$terminfo[bold]$fg[cyan]%}%~%{$reset_color%} \ | |
${git_info}\ | |
\ | |
$exit_code | |
%{$terminfo[bold]$fg[red]%}$ %{$reset_color%}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment