Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

new Prompt #1092

Closed
wants to merge 1 commit into from

3 participants

@dgo-

Hi,

i want to share my Prompt. I hope you like it.

Best wishes,
murc

@Larandar

Have you a screenshot ?

@dgo-
@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 25, 2012
  1. added stderror Prompt

    Daniel Goeke authored
This page is out of date. Refresh to see the latest.
Showing with 31 additions and 0 deletions.
  1. +31 −0 themes/stderror.zsh-theme
View
31 themes/stderror.zsh-theme
@@ -0,0 +1,31 @@
+# stderror.net Prompt
+#
+# mailto daniel(at)stderror.net
+
+precmd () # dirty stuff for a clean prompt
+{
+ local -A color
+ local run
+ local fill
+ run=0
+ local host=`hostname`
+ len=`echo "+--<:)>--{$USER@$host}--[20:15]" | wc -c`
+ color['time']=${1:-'white'}
+ color['pwd']=${2:-'blue'}
+ color['com']=${3:-'black'}
+ smile='`if [ ${?} = 0 ]; then echo -ne "%F{green}:)%F{blue}"; else echo -ne "%F{red} :(%F{blue}"; fi;`'
+ (( sub = ${COLUMNS} - ${len} ))
+ while [ ${run} -lt ${sub} ]; do fill="${fill}-"; run=$((${run} + 1)); done;
+ if [ "$USER" = "root" ]; then
+ color['user']=${4:-'red'}
+ else
+ color['user']=${4:-'green'}
+ fi
+ PROMPT="
+%F{blue}+--<$smile>--{%F{$color['user']}%n%F{cyan}@%F{red}${host}%F{blue}}-$fill-[%F{yellow}%T%F{blue}]
++{%f%d%F{cyan}>>%f"
+ ps2="» "
+ PS3="${PS2}"
+ PS4="${PS2}"
+ export PROMPT PS2 PS3 PS4
+}
Something went wrong with that request. Please try again.