From 391598716b16b4d063e28665fc6d03ef5c10980b Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Wed, 28 Mar 2012 18:24:31 -0400 Subject: [PATCH] Fix global typesets Without the '-g' switch, typesets are always declared locally. --- environment.zsh | 4 ++-- keyboard.zsh | 2 +- spectrum.zsh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/environment.zsh b/environment.zsh index 2c03055..38bd54d 100644 --- a/environment.zsh +++ b/environment.zsh @@ -23,8 +23,8 @@ unsetopt HUP # Don't kill jobs on shell exit. unsetopt CHECK_JOBS # Don't report on jobs when shell exit. # PATH -typeset -U cdpath fpath mailpath manpath path -typeset -UT INFOPATH infopath +typeset -gU cdpath fpath mailpath manpath path +typeset -gUT INFOPATH infopath cdpath=( $HOME diff --git a/keyboard.zsh b/keyboard.zsh index fc3969b..9a17279 100644 --- a/keyboard.zsh +++ b/keyboard.zsh @@ -30,7 +30,7 @@ zle -N edit-command-line # Use human-friendly identifiers. zmodload zsh/terminfo -typeset -g -A keyinfo +typeset -gA keyinfo keyinfo=( 'Control' '\C-' 'Escape' '\e' diff --git a/spectrum.zsh b/spectrum.zsh index ed0a483..e9a5774 100644 --- a/spectrum.zsh +++ b/spectrum.zsh @@ -6,7 +6,7 @@ # Sorin Ionescu # -typeset -Ag FX FG BG +typeset -gA FX FG BG FX=( none "\e[00m"