From 3437dd6ab00d59ae96fc193a9a4024aacc04138e Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 21 Apr 2016 16:09:53 +0100 Subject: Fix mistake in colorscheme function --- zsh/.zsh/functions | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zsh') diff --git a/zsh/.zsh/functions b/zsh/.zsh/functions index e77dee7..661fe17 100644 --- a/zsh/.zsh/functions +++ b/zsh/.zsh/functions @@ -8,6 +8,7 @@ function colo { if [[ "${XRESOURCE}" == *"-dark" ]]; then export COLORSCHEME=${XRESOURCE%-dark} export BACKGROUND="dark" + echo ${COLORSCHEME} elif [[ "${XRESOURCE}" == *"-light" ]]; then export COLORSCHEME=${XRESOURCE%-light} export BACKGROUND="light" @@ -24,7 +25,7 @@ function colo { # Change default environment variable for future sessions sed -i --follow-symlinks "s/^export COLORSCHEME=.*$/export COLORSCHEME=${COLORSCHEME}/g" ~/.zsh/tmp - sed -i --follow-symlinks "s/^export COLORSCHEME=.*$/export BACKGROUND=${BACKGROUND}/g" ~/.zsh/tmp + sed -i --follow-symlinks "s/^export BACKGROUND=.*$/export BACKGROUND=${BACKGROUND}/g" ~/.zsh/tmp } # Completion for colorschemes (-M -> Case insensitive) -- cgit v1.2.3