From 578c4d5ab10a1f802b911c6231e87f491980f5ac Mon Sep 17 00:00:00 2001 From: Armin Date: Sun, 22 Feb 2015 19:57:19 +0100 Subject: [PATCH] add host files for powerline colors --- lib/powerlinecolours | 8 -------- themes/powerline-with-hostname.zsh-theme | 2 +- themes/powerline.zsh-theme | 2 +- zshrc | 3 ++- 4 files changed, 4 insertions(+), 11 deletions(-) delete mode 100644 lib/powerlinecolours diff --git a/lib/powerlinecolours b/lib/powerlinecolours deleted file mode 100644 index 81f17f851..000000000 --- a/lib/powerlinecolours +++ /dev/null @@ -1,8 +0,0 @@ -colours=(22 71 152 32) - -# set colours from array: -prompt_context_user_fg="${colours[1]}" -prompt_context_user_bg="${colours[2]}" -prompt_context_root_fg="${colours[3]}" -prompt_context_root_bg="${colours[4]}" - diff --git a/themes/powerline-with-hostname.zsh-theme b/themes/powerline-with-hostname.zsh-theme index 6b46743b4..850f0568d 100644 --- a/themes/powerline-with-hostname.zsh-theme +++ b/themes/powerline-with-hostname.zsh-theme @@ -18,7 +18,7 @@ SEGMENT_SEPARATOR='' RSEGMENT_SEPARATOR='' # use custom colours: -source "$ZSH"/lib/powerlinecolours +source "$ZSH"/lib/powerline/colors.zsh # Begin left side segment # Takes two arguments, background and foreground. Both can be omitted, diff --git a/themes/powerline.zsh-theme b/themes/powerline.zsh-theme index 860eb7a74..b25399eb1 100644 --- a/themes/powerline.zsh-theme +++ b/themes/powerline.zsh-theme @@ -18,7 +18,7 @@ SEGMENT_SEPARATOR='' RSEGMENT_SEPARATOR='' # use custom colours: -source "$ZSH"/lib/powerlinecolours +source "$ZSH"/lib/powerline/colors.zsh # Begin left side segment # Takes two arguments, background and foreground. Both can be omitted, diff --git a/zshrc b/zshrc index 3752c50e5..a28742041 100644 --- a/zshrc +++ b/zshrc @@ -5,7 +5,8 @@ ZSH="$HOME/.zsh" # export ZSH_THEME="random" # export ZSH_THEME="ezzsh" # name of zsh theme -export ZSH_THEME="powerline" # name of zsh theme +# export ZSH_THEME="powerline" # name of zsh theme +export ZSH_THEME="powerline-with-hostname" # name of zsh theme # Set this to true to use case-sensitive completion CASE_SENSITIVE="false" # bool