Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add beginnings of custom prompt theme

  • Loading branch information...
commit b1ec50dacfc639d736f7231afaa3e1bbeb3ea3a2 1 parent 1120f97
Lonnon Foster authored

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

  1. +22 0 themes/lonnon.zsh-theme
22 themes/lonnon.zsh-theme
... ... @@ -0,0 +1,22 @@
  1 +# Based on https://github.com/blinks zsh theme
  2 +
  3 +function _prompt_char() {
  4 + if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
  5 + echo "%{%F{blue}%}±%{%f%k%b%}"
  6 + else
  7 + echo ' '
  8 + fi
  9 +}
  10 +
  11 +ZSH_THEME_GIT_PROMPT_PREFIX=" [%{%B%F{green}%}"
  12 +ZSH_THEME_GIT_PROMPT_SUFFIX="%{%f%k%b%K{black}%B%F{green}%}]"
  13 +ZSH_THEME_GIT_PROMPT_DIRTY=" %{%F{red}%}⚑%{%f%k%b%}"
  14 +ZSH_THEME_GIT_PROMPT_CLEAN=""
  15 +
  16 +MODE_INDICATOR="%{$fg_bold[red]%}‼%{$reset_color%}"
  17 +
  18 +PROMPT='%{%f%k%b%}
  19 +%{%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%}
  20 +%{%K{black}%}$(_prompt_char)%{%K{black}%} $(vi_mode_prompt_info)%#%{%f%k%b%} '
  21 +
  22 +RPROMPT='!%{%B%F{cyan}%}%!%{%f%k%b%}'

0 comments on commit b1ec50d

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