Created
January 7, 2017 23:29
-
-
Save ibejohn818/7407745ba7cdfd62ce5e2ede41d77e8f to your computer and use it in GitHub Desktop.
Customized YS ZSH Theme without git for vagrant
This file contains hidden or 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. | |
# | |
# Mar 2013 Yad Smood | |
local exit_code="%(?,,C:%{$fg[red]%}%?%{$reset_color%})" | |
# Prompt format: | |
# | |
# PRIVILEGES USER @ MACHINE in DIRECTORY on git:BRANCH STATE [TIME] C:LAST_EXIT_CODE | |
# $ COMMAND | |
# | |
# For example: | |
# | |
# % ys @ ys-mbp in ~/.oh-my-zsh on git:master x [21:47:42] C:0 | |
# $ | |
PROMPT=" | |
%{$terminfo[bold]$fg[blue]%}#%{$reset_color%} \ | |
%(#,%{$bg[yellow]%}%{$fg[black]%}%n%{$reset_color%},%{$fg[cyan]%}%n) \ | |
%{$fg[white]%}@ \ | |
%{$fg[green]%}%m \ | |
%{$fg[white]%}in \ | |
%{$terminfo[bold]$fg[yellow]%}%~%{$reset_color%}\ | |
\ | |
%{$fg[white]%}[%*] $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