mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-08 04:34:00 +02:00
27 lines
1.1 KiB
Bash
27 lines
1.1 KiB
Bash
################################################
|
|
# #
|
|
# omilun.zsh-theme #
|
|
# Git: https://github.com/omilun/oh-my-zsh.git #
|
|
# #
|
|
################################################
|
|
|
|
# chack users to do some behavior.
|
|
# maybe you are yousing oh my zsh on root user and like to switch to another user.
|
|
if [ $UID -eq 0 ]; then ACOLOR="$FG[203]" BCOLOR="$FG[011]";echo "be careful if you are a beginner Linux User!! you are on SuperUser now."; else ACOLOR="$FG[011]" BCOLOR="$FG[203]"; fi
|
|
|
|
# prompt's look.
|
|
local ret_status="%(?:%{$ACOLOR%}❰%{$fg_bold[green]%}✔%{$ACOLOR%}❱:%{$BCOLOR%}❰%{$FG[203]%}✘✘%{$FG[011]%}%?%{$FG[203]%}✘✘%{$BCOLOR%}❱)"
|
|
|
|
# primary prompt
|
|
PROMPT='%{$BCOLOR%}%~/\
|
|
$(git_prompt_info) \
|
|
${ret_status}%{$reset_color%} '
|
|
|
|
# right prompt
|
|
RPROMPT='%{$ACOLOR%}[%*]%{$reset_color%}'
|
|
|
|
# git settings
|
|
ZSH_THEME_GIT_PROMPT_PREFIX="$FG[044](branch:"
|
|
ZSH_THEME_GIT_PROMPT_CLEAN=""
|
|
ZSH_THEME_GIT_PROMPT_DIRTY="$FG[214]✗%{$reset_color%}"
|
|
ZSH_THEME_GIT_PROMPT_SUFFIX="$FG[044])%{$reset_color%}"
|