mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +01:00
cute and useful themes, https://github.com/Jyny/jyny.zsh-theme
This commit is contained in:
parent
4224c2a1af
commit
7c7ab9c58d
1 changed files with 16 additions and 0 deletions
16
themes/jyny.zsh-theme
Normal file
16
themes/jyny.zsh-theme
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
ZSH_THEME_GIT_PROMPT_PREFIX=" [ Git:%{$fg[green]%}"
|
||||
ZSH_THEME_GIT_PROMPT_SUFFIX=" %{$reset_color%}]"
|
||||
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}⚡"
|
||||
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
||||
local ret_status="%(?:%{$fg_bold[green]%}» %{$reset_color%}:%{$fg_bold[red]%}» %{$reset_color%}"
|
||||
local face_status="%(?:%{$fg_bold[green]%}ヾ(●´∀`*)ノ :%{$fg_bold[red]%}Σ( ° Д °||%)︴)"
|
||||
|
||||
function prompt_char {
|
||||
if [ $UID -eq 0 ]; then echo "%{$fg[red]%}#%{$reset_color%}"; else echo $; fi
|
||||
}
|
||||
|
||||
PROMPT='%(?,,%{$fg[red]%}FAIL : $?%{$reset_color%})
|
||||
《 %{$fg_bold[blue]%}%~%{$reset_color%} 》%{$fg[magenta]%}%n%{$reset_color%} @ %{$fg[yellow]%}%m%{$reset_color%}$(git_prompt_info)
|
||||
%_$(prompt_char)${ret_status}'
|
||||
|
||||
RPROMPT='${face_status}%{$reset_color%}[%*]'
|
||||
Loading…
Add table
Add a link
Reference in a new issue