mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
tiny update with themeing
This commit is contained in:
parent
1c950ceb91
commit
0939b88a82
2 changed files with 10 additions and 1 deletions
|
|
@ -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
9
themes/default.zsh-theme
Normal 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=""
|
||||
Loading…
Add table
Add a link
Reference in a new issue