mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Added "anothertheme.zsh-theme"
This commit is contained in:
parent
b34aee7f76
commit
639b337b67
1 changed files with 28 additions and 0 deletions
28
themes/anothertheme.zsh-theme
Normal file
28
themes/anothertheme.zsh-theme
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Name : Another (simple zsh) theme
|
||||
# Author : Thomas VIAL
|
||||
# URL : http://tvi.al
|
||||
|
||||
# The prompt looks like this:
|
||||
# [12:34:56] user@hostname:/path/to/project [git:branch-name*] $
|
||||
|
||||
# Installation:
|
||||
# In your .zshrc file, edit:
|
||||
# ZSH_THEME="anothertheme"
|
||||
|
||||
# You can change ANOTHERTHEME_USERHOSTNAME_COLOR and ANOTHERTHEME_PATH_COLOR from your .zshrc file.
|
||||
# It could be useful to set a color per server to avoid mistakes when you have multiple shells open.
|
||||
# In your .zshrc (do not modifiy the theme)
|
||||
# ANOTHERTHEME_USERHOSTNAME_COLOR="blue"
|
||||
# ANOTHERTHEME_PATH_COLOR="green"
|
||||
|
||||
#
|
||||
# Do not edit the next part
|
||||
#
|
||||
|
||||
[[ -z "$ANOTHERTHEME_USERHOSTNAME_COLOR" ]] && ANOTHERTHEME_USERHOSTNAME_COLOR="blue"
|
||||
[[ -z "$ANOTHERTHEME_PATH_COLOR" ]] && ANOTHERTHEME_PATH_COLOR="green"
|
||||
|
||||
PROMPT='[%*] %{$fg[$ANOTHERTHEME_USERHOSTNAME_COLOR]%}%n@%m%{$reset_color%}:%{$fg[$ANOTHERTHEME_PATH_COLOR]%}%/%{$reset_color%}$(git_prompt_info) %(!.#.$) '
|
||||
|
||||
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[yellow]%}[git:"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue