tiny update with themeing

This commit is contained in:
James McGlashan 2011-12-06 17:55:56 +11:00
commit 0939b88a82
2 changed files with 10 additions and 1 deletions

View file

@ -1,7 +1,7 @@
set_theme() {
local themes
themes=({$OMZ,$ZSH}/themes/$1.zsh-theme(N))
source $themes[1]
source $themes[1] || omz_log_msg "theme: $1 was not found. falling back to default." && source $ZSH/themes/default.zsh-theme
}
random_theme() {

9
themes/default.zsh-theme Normal file
View file

@ -0,0 +1,9 @@
(( EUID == 0 )) && ucolor=red || ucolor=cyan
PROMPT='%{$fg[$ucolor]%}%n%{$reset_color%}@%{$fg[blue]%}%m%{$reset_color%}: %{$fg[green]%}%0~%{$fg[red]%}%(?.. [%?]) %{$reset_color%}%% '
RPROMPT='$(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}["
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""