From f996920e5c02fe9b336c483ccce2a285e0a29637 Mon Sep 17 00:00:00 2001 From: AetherEternity Date: Wed, 18 Apr 2018 21:36:29 +0300 Subject: [PATCH] added custom theme --- themes/aethereternity.zsh-theme | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 themes/aethereternity.zsh-theme diff --git a/themes/aethereternity.zsh-theme b/themes/aethereternity.zsh-theme new file mode 100644 index 000000000..e7bc880f2 --- /dev/null +++ b/themes/aethereternity.zsh-theme @@ -0,0 +1,23 @@ +# https://github.com/robbyrussell/oh-my-zsh/wiki/themes +# based on nerbirhos theme and default kali linux bash +# choose between # and $ +function prompt_char { + if [ $UID -eq 0 ]; then echo "#"; else echo $; fi +} + +# choose color of user@host +local user_color='green'; [ $UID -eq 0 ] && user_color='red' + +HOST_PROMPT_="%{$fg_bold[$user_color]%}$USER@$HOST%{$reset_color%}%{$fg[white]%}:%{$fg_bold[blue]%}%~" + +GIT_PROMPT="%{$fg_bold[cyan]%}\$(git_prompt_info)%{$fg_bold[cyan]%} % %{$reset_color%}" + +# end with # or $ +CHAR_PROMPT="%{$fg[white]%}$(prompt_char)%{$reset_color%} " + +PROMPT="$HOST_PROMPT_$GIT_PROMPT_$CHAR_PROMPT" + +ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}" +ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}" +ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"