Make zsh tests use new environment variables

This commit is contained in:
ZyX 2015-01-06 22:30:49 +03:00
parent 07f82fed66
commit 87ebe41f30

View File

@ -2,28 +2,18 @@ unset HOME
unsetopt promptsp notransientrprompt unsetopt promptsp notransientrprompt
setopt interactivecomments setopt interactivecomments
setopt autonamedirs setopt autonamedirs
if test -z "$POWERLINE_NO_ZSH_ZPYTHON" ; then function set_theme_option() {
function set_theme_option() { export POWERLINE_THEME_OVERRIDES="${POWERLINE_THEME_OVERRIDES};$1=$2"
POWERLINE_THEME_OVERRIDES[$1]=$2 powerline-reload-config
powerline-reload-config }
} function set_theme() {
function set_theme() { export POWERLINE_CONFIG_OVERRIDES="ext.shell.theme=$1"
typeset -A POWERLINE_CONFIG_OVERRIDES powerline-reload-config
POWERLINE_CONFIG_OVERRIDES=( }
ext.shell.theme $1 if test -n "$POWERLINE_NO_ZSH_ZPYTHON" ; then
) powerline-reload-config():
powerline-reload-config
}
else
function set_theme_option() {
POWERLINE_COMMAND="$POWERLINE_COMMAND -t $1=$2"
}
function set_theme() {
POWERLINE_COMMAND="$POWERLINE_COMMAND -c ext.shell.theme=$1"
}
fi fi
source powerline/bindings/zsh/powerline.zsh source powerline/bindings/zsh/powerline.zsh
typeset -gA POWERLINE_CONFIG_OVERRIDES POWERLINE_THEME_OVERRIDES
set_theme_option default_leftonly.segment_data.hostname.args.only_if_ssh false set_theme_option default_leftonly.segment_data.hostname.args.only_if_ssh false
set_theme_option default.segment_data.hostname.args.only_if_ssh false set_theme_option default.segment_data.hostname.args.only_if_ssh false
set_theme default_leftonly set_theme default_leftonly