diff oh-my-zsh/themes/custom.zsh-theme @ 0:36a9b3a28861

Add all dotfiles
author zegervdv <zegervdv@me.com>
date Sun, 23 Feb 2014 17:20:32 +0100
parents
children 1b3381f349f0
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/oh-my-zsh/themes/custom.zsh-theme	Sun Feb 23 17:20:32 2014 +0100
@@ -0,0 +1,32 @@
+function get_pwd() {
+   echo "${PWD/$HOME/~}"
+}
+
+eval my_gray='$FG[237]'
+eval my_orange='$FG[214]'
+
+
+
+local git=$(git_prompt_info)
+if [ ${#git} != 0 ]; then
+    ((git=${#git} - 10))
+else
+    git=0
+fi
+
+PROMPT=$'%{$fg[cyan]%}%m %{$fg[yellow]%}$(get_pwd)
+%{$reset_color%}→ '
+
+RPROMPT='$my_gray$(git_prompt_info) $(git_prompt_status)%{$reset_color%}%'
+
+ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} U"
+ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} A"
+ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} D"
+ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} R"
+ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} M"
+ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} U"
+
+ZSH_THEME_GIT_PROMPT_PREFIX="${my_gray}"
+ZSH_THEME_GIT_PROMPT_CLEAN=""
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_SUFFIX="$my_gray%{$reset_color%}"