From f9236afe523c8ab06de858a89f12e3070695c0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Je=CC=81re=CC=81my=20Romey?= Date: Thu, 12 Jul 2012 14:26:49 +0200 Subject: [PATCH] Added the powerline theme file --- README.md | 19 ++++++++++++++++++- powerline.zsh-theme | 12 ++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 powerline.zsh-theme diff --git a/README.md b/README.md index 8469701..a8fce34 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,21 @@ oh-my-zsh-powerline-theme ========================= -oh-my-zsh Powerline style Theme \ No newline at end of file +oh-my-zsh Powerline style Theme + +Set Up +------ + +# Copy the **powerline.zsh-theme** in **.oh-my-zsh/themes/**. + +# Configure the theme in your **.zshrc** file : + +``` +ZSH_THEME="powerline" +``` + +Requirements +------------ + +* Vim Powerline patched font : See [Powerline for vim](https://github.com/Lokaltog/vim-powerline.git) for more info. +* Z shell (zsh) : See [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) for more info. diff --git a/powerline.zsh-theme b/powerline.zsh-theme new file mode 100644 index 0000000..3cb4c69 --- /dev/null +++ b/powerline.zsh-theme @@ -0,0 +1,12 @@ +# FreeAgent puts the powerline style in zsh ! + +ZSH_THEME_GIT_PROMPT_PREFIX=" \u2b60 " +ZSH_THEME_GIT_PROMPT_SUFFIX="" +ZSH_THEME_GIT_PROMPT_DIRTY=" δ" +ZSH_THEME_GIT_PROMPT_CLEAN="" + + +PROMPT=' +'%{$bg[green]%}%{$fg[black]%}' '%n' '%{$reset_color%}%{$fg[green]%}%{$bg[blue]%}$'\u2b80'%{$reset_color%}%{$fg[white]%}%{$bg[blue]%}' '%1~$'$(git_prompt_info) '%{$reset_color%}%{$fg[blue]%}$'\u2b80%{$reset_color%} ' + +RPROMPT=%F{white}$' \u2b82%{$reset_color%}%{$bg[white]%} %F{gray}%D{%X}% \u2b83 %D{%Y-%m-%e}%f %{$reset_color%}'