Skip to content

Loading…

New clean theme - "Mefisto" #1096

Closed
wants to merge 3 commits into from

2 participants

@bogor

Hi
Just started using oh-my-zsh and couldn't find any theme that was clean and minimal (no rainbow colors, no 3 lines for prompt :D) and would
1) highlight root prompt
2) highlight host when on ssh
3) put any repository related info to right side prompt

So I ported my old prompt and here's what came out:

screencap

@robbyrussell
Owner

Thanks for sending this across. However, per the README file ( https://github.com/robbyrussell/oh-my-zsh ) at this point in time... I am not going to be accepting any new themes for a while. My aim is to work out a new solution for how to manage user theme contributions better in the future, but am thinking that 100+ is already too many for folks to browse/select from. :-)

Be sure to follow @ohmyzsh on twitter ( http://twitter.com/ohmyzsh ) to stay tuned for when we might have a good location for such themes.

ProTip: If you have a custom theme and want to use it... you might check out this (poorly documented) feature from pull-request #1111.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 27, 2012
  1. @bogor
  2. @bogor

    some more on Mefisto

    bogor committed
  3. @bogor

    fix the prompt

    bogor committed
This page is out of date. Refresh to see the latest.
Showing with 25 additions and 0 deletions.
  1. +25 −0 themes/mefisto.zsh-theme
View
25 themes/mefisto.zsh-theme
@@ -0,0 +1,25 @@
+# diff color for root shell
+if [ $UID -eq 0 ]; then
+ NCOLOR="red"
+ PCOLOR="red"
+else
+ NCOLOR="green"
+ PCOLOR="green"
+fi
+
+# diff color for host if on SSH session
+if [[ -n "${SSH_CLIENT}" || -n "${SSH2_CLIENT}" ]]; then
+ HCOLOR="yellow"; else HCOLOR="green"; fi
+
+PROMPT='%{$fg[cyan]%}[%{$reset_color%}%{$fg[$NCOLOR]%}%n%{$reset_color%}%{$fg[cyan]%}@%{$reset_color%}%{$fg[$HCOLOR]%}%m%{$reset_color%}%{$fg[cyan]%}]%{$reset_color%}%{$fg[cyan]%}[%{$reset_color%}%{$fg[blue]%}%B%c/%b%{$reset_color%}%{$fg[cyan]%}]%{$reset_color%}%{$fg[$PCOLOR]%}%#%{$reset_color%} '
+
+RPROMPT='$(git_prompt_info)'
+
+# git theming
+ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg_no_bold[yellow]%}%B"
+ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[blue]%})%{$reset_color%} "
+ZSH_THEME_GIT_PROMPT_CLEAN=""
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}✗"
+
+export LSCOLORS="Gxfxcxdxbxegedabagacad"
+export LS_COLORS='rs=0:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:';
Something went wrong with that request. Please try again.