Skip to content
This repository
Browse code

added my theme, based on xiong-chiamiov-plus but using vcs_info

instead of just git
  • Loading branch information...
commit e3b9e981538d2bbb9a3c3934419162d1c2a6046e 1 parent 9efc086
Mike Hostetler squarepegsys authored committed

Showing 1 changed file with 23 additions and 0 deletions. Show diff stats Hide diff stats

  1. +23 0 themes/mikeh.zsh-theme
23 themes/mikeh.zsh-theme
... ... @@ -0,0 +1,23 @@
  1 +setopt prompt_subst
  2 +autoload colors
  3 +colors
  4 +
  5 +autoload -U add-zsh-hook
  6 +autoload -Uz vcs_info
  7 +
  8 +# check-for-changes can be really slow.
  9 +# you should disable it, if you work with large repositories
  10 +zstyle ':vcs_info:*:prompt:*' check-for-changes true
  11 +
  12 +add-zsh-hook precmd mikeh_precmd
  13 +
  14 +mikeh_precmd() {
  15 + vcs_info
  16 +}
  17 +
  18 +# user, host, full path, and time/date
  19 +# on two lines for easier vgrepping
  20 +# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
  21 +PROMPT=$'%{\e[0;34m%}%B..[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;30m%}@%{\e[0m%}%{\e[0;36m%}%m%{\e[0;34m%}%B]%b%{\e[0m%} - %b%{\e[0;34m%}%B[%b%{\e[1;37m%}%~%{\e[0;34m%}%B]%b%{\e[0m%} - %{\e[0;34m%}%B[%b%{\e[0;33m%}'%D{"%a %b %d, %I:%M"}%b$'%{\e[0;34m%}%B]%b%{\e[0m%}
  22 +%{\e[0;34m%}%B..%B[%{\e[1;35m%}$%{\e[0;34m%}%B] <($vcs_info_msg_0_)>%{\e[0m%}%b '
  23 +PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '

0 comments on commit e3b9e98

Please sign in to comment.
Something went wrong with that request. Please try again.