Skip to content

Instantly share code, notes, and snippets.

@printempw printempw/bash.zsh-theme
Last active Jun 18, 2019

What would you like to do?
My custom oh-my-zsh themes.
# Just a copy of the default prompt of bash.
# root@youtube-relay-station:/home/wwwroot$
PROMPT='%{$fg[green]%}%n@%m%{$reset_color%}:%{$fg[cyan]%}%~%{$reset_color%}$ '
# Modified from robbyrussell, the default theme of oh-my-zsh.
# > blog git:(source) x $
local ret_status="%(?:%{$fg_bold[green]%}>:%{$fg_bold[red]%}>%s)"
PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)$ '
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}x%{$reset_color%}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.