Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

We use wunderprompt now

  • Loading branch information...
commit e3489e1dc8872e05330504704bc304c0190593cd 1 parent d678803
Tim Herd authored
Showing with 3 additions and 29 deletions.
  1. +3 −29 .config.d/zsh/prompts.zsh
32 .config.d/zsh/prompts.zsh
View
@@ -1,30 +1,4 @@
-function build-prompt() {
- ret=$?
- case "$ret" in
- 0) statcolor="%{$fg[green]%}" ;;
- *) statcolor="%{$fg[red]%}$ret" ;;
- esac
- ruby=$(/Users/eqdw/src/prompt/ruby_info)
- git=$(/Users/eqdw/src/prompt/prompt 2>/dev/null)
+PROMPT='`/Users/eqdw/src/wunderprompt/prompt $?`'
- turbo=""
- if [[ $RUBY_HEAP_MIN_SLOTS == 1000000 ]] {
- turbo="X"
- }
- case `hostname` in
- zeltennia.local) pathcolor="%{$fg[cyan]%}" ;;
- zeltenia) pathcolor="%{$fg[cyan]%}" ;;
- *) pathcolor="%{$fg[red]%}" ;;
- esac
-
- echo "$pathcolor%c %{$fg[red]%}$turbo$ruby $git $statcolor%#%{$reset_color%} "
-}
-PROMPT="`build-prompt`"
-
-function build-rprompt() {
- echo "%{$fg[gray]%}%~ %l %h %*%{$fg[white]%}%{$fg[reset]%}"
-}
-RPROMPT="`build-rprompt`"
-
-[ x$TERM = "xeterm-color" ] && setopt singlelinezle
-[ x$TERM = "xdumb" ] && unsetopt zle && PS1='$ '
+[ $TERM = "eterm-color" ] && setopt singlelinezle
+[ $TERM = "dumb" ] && unsetopt zle && PS1='$ '
Please sign in to comment.
Something went wrong with that request. Please try again.