Permalink
Browse files

Add beginnings of custom prompt theme

  • Loading branch information...
1 parent 1120f97 commit b1ec50dacfc639d736f7231afaa3e1bbeb3ea3a2 Lonnon Foster committed Mar 28, 2012
Showing with 22 additions and 0 deletions.
  1. +22 −0 themes/lonnon.zsh-theme
View
@@ -0,0 +1,22 @@
+# Based on https://github.com/blinks zsh theme
+
+function _prompt_char() {
+ if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
+ echo "%{%F{blue}%}±%{%f%k%b%}"
+ else
+ echo ' '
+ fi
+}
+
+ZSH_THEME_GIT_PROMPT_PREFIX=" [%{%B%F{green}%}"
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{%f%k%b%K{black}%B%F{green}%}]"
+ZSH_THEME_GIT_PROMPT_DIRTY=" %{%F{red}%}⚑%{%f%k%b%}"
+ZSH_THEME_GIT_PROMPT_CLEAN=""
+
+MODE_INDICATOR="%{$fg_bold[red]%}‼%{$reset_color%}"
+
+PROMPT='%{%f%k%b%}
+%{%K{black}%B%F{green}%}%n%{%B%F{blue}%}@%{%B%F{cyan}%}%m%{%B%F{green}%} %{%b%F{yellow}%K{black}%}%~%{%B%F{green}%}$(git_prompt_info)%E%{%f%k%b%}
+%{%K{black}%}$(_prompt_char)%{%K{black}%} $(vi_mode_prompt_info)%#%{%f%k%b%} '
+
+RPROMPT='!%{%B%F{cyan}%}%!%{%f%k%b%}'

0 comments on commit b1ec50d

Please sign in to comment.