Created
October 24, 2018 21:34
-
-
Save mritzmann/85946d9ea5ca8bc2d07a7ab02947bead to your computer and use it in GitHub Desktop.
ys.zsh-theme edited for oh-my-zsh diskusage plugin
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. | |
# | |
# Mar 2013 Yad Smood | |
# | |
# // Edited for oh-my-zsh diskusage plugin | |
# VCS | |
YS_VCS_PROMPT_PREFIX1=" %{$fg[white]%}on%{$reset_color%} " | |
YS_VCS_PROMPT_PREFIX2=":%{$fg[cyan]%}" | |
YS_VCS_PROMPT_SUFFIX="%{$reset_color%}" | |
YS_VCS_PROMPT_DIRTY=" %{$fg[red]%}x" | |
YS_VCS_PROMPT_CLEAN=" %{$fg[green]%}o" | |
# Git info | |
ZSH_THEME_GIT_PROMPT_PREFIX="${YS_VCS_PROMPT_PREFIX1}git${YS_VCS_PROMPT_PREFIX2}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="$YS_VCS_PROMPT_SUFFIX" | |
ZSH_THEME_GIT_PROMPT_DIRTY="$YS_VCS_PROMPT_DIRTY" | |
ZSH_THEME_GIT_PROMPT_CLEAN="$YS_VCS_PROMPT_CLEAN" | |
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%}\ | |
$(git_prompt_info) \ | |
$(DISKUSAGE)\ | |
\ | |
%{$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