Omilun's idea

This commit is contained in:
omid rajabagha 2017-02-02 18:42:26 +03:30 committed by GitHub
commit 79dc4dda29

27
themes/omilun.zsh-theme Normal file
View file

@ -0,0 +1,27 @@
################################################
# #
# 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%}"