From ca99b62755803d5064cca1b076dbbd394a145571 Mon Sep 17 00:00:00 2001 From: omid rajabagha Date: Sun, 5 Feb 2017 16:28:30 +0330 Subject: [PATCH] Create omilun.zsh-theme --- themes/omilun.zsh-theme | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 themes/omilun.zsh-theme diff --git a/themes/omilun.zsh-theme b/themes/omilun.zsh-theme new file mode 100644 index 000000000..605769a30 --- /dev/null +++ b/themes/omilun.zsh-theme @@ -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 rootuser and like to switch to anotherone. +if [ $UID -eq 0 ]; then ACOLOR="$FG[203]" BCOLOR="$FG[011]";echo "be careful if you are beginner!! 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%}"