Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
My custom Zsh themes.
# Default bash prompt of CentOS
# e.g. [user@host current]$
PROMPT="%{$fg_bold[green]%}[%n@%m%{$reset_color%} %{$fg_bold[white]%}%c%{$fg_bold[green]%}]%(!.#.$)%{$reset_color%} "
# Default bash prompt of Ubuntu
# e.g. user@host:~/path$
PROMPT="%{$fg_bold[green]%}%n@%m%{$reset_color%}:%{$fg_bold[cyan]%}%~%{$reset_color%}%(!.#.$) "
# Modified from robbyrussell, the default theme of oh-my-zsh
# e.g. > current git:(source) x $
PROMPT+=' %{$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"

This comment has been minimized.

Copy link
Owner Author

printempw commented Jan 15, 2020

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.