Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Adds new theme based on muse.zsh-theme #1080

Closed
wants to merge 1 commit into from

3 participants

@jkeroes

Inserts user@host at left size of prompt.

@Larandar

Have you some screenshot ?

@jkeroes

Sorry for the long delay; just returned from a trip. Here's your picture!

twomuses.zsh-theme screenshot

@Larandar

Cool color scheme, and cool prompt. I like it!

Sent via Hubroid

@robbyrussell
Owner

Thanks for sending this across. However, 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 19, 2012
  1. @jkeroes
This page is out of date. Refresh to see the latest.
Showing with 40 additions and 0 deletions.
  1. +40 −0 themes/twomuses.zsh-theme
View
40 themes/twomuses.zsh-theme
@@ -0,0 +1,40 @@
+#!/usr/bin/env zsh
+#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
+#
+# Joshua Keroes 2012 - Adds user@host to muse.zsh-theme
+
+setopt promptsubst
+
+autoload -U add-zsh-hook
+# autoload -U colors && colors
+zle_highlight=( default:bold )
+
+USER_COLOR=$FG[067]
+HOST_COLOR=$FG[244]
+DIR_COLOR=$FG[060]
+PROMPT_COLOR=$FG[077]
+
+PROMPT_SUCCESS_COLOR=$FG[117]
+PROMPT_FAILURE_COLOR=$FG[124]
+PROMPT_VCS_INFO_COLOR=$FG[242]
+GIT_DIRTY_COLOR=$FG[133]
+GIT_CLEAN_COLOR=$FG[118]
+GIT_PROMPT_INFO=$FG[012]
+GIT_SHA_COLOR=$FG[117]
+
+#RPS1="${return_code}"
+
+ZSH_THEME_GIT_PROMPT_PREFIX="("
+ZSH_THEME_GIT_PROMPT_DIRTY=" %{$GIT_DIRTY_COLOR%}✘"
+ZSH_THEME_GIT_PROMPT_CLEAN=" %{$GIT_CLEAN_COLOR%}✔"
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$GIT_PROMPT_INFO%})"
+
+ZSH_THEME_GIT_PROMPT_ADDED="%{$FG[082]%}✚%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_MODIFIED="%{$FG[166]%}✹%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_DELETED="%{$FG[160]%}✖%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_RENAMED="%{$FG[220]%}➜%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_UNMERGED="%{$FG[082]%}═%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$FG[190]%}✭%{$reset_color%}"
+
+PROMPT='%{$USER_COLOR%}%n%{$reset_color%}@%{$HOST_COLOR%}%m%{$WHITE%}:%{$DIR_COLOR%}%~%{$reset_color%}%{$PROMPT_COLOR%} ᐅ %{$reset_color%}'
+RPROMPT='%{$GIT_SHA_COLOR%}$(git_prompt_short_sha) %{$GIT_PROMPT_INFO%}$(git_prompt_info) %{$GIT_DIRTY_COLOR%}$(git_prompt_status) %{$reset_color%}'
Something went wrong with that request. Please try again.