summaryrefslogtreecommitdiff
path: root/themes/jonathan.zsh-theme
diff options
context:
space:
mode:
authorMarc Cornellà <hello@mcornella.com>2021-12-16 10:15:55 +0100
committerMarc Cornellà <hello@mcornella.com>2021-12-16 10:16:53 +0100
commit7d03ea18eda8d89316fdb035fb3840f48a065338 (patch)
tree6125f40efdc5b1548c0eed0b61bce82b4c1a23fc /themes/jonathan.zsh-theme
parentfb86ec7749644bba4792f95bd06076049d9c74a6 (diff)
downloadzsh-7d03ea18eda8d89316fdb035fb3840f48a065338.tar.gz
zsh-7d03ea18eda8d89316fdb035fb3840f48a065338.tar.bz2
zsh-7d03ea18eda8d89316fdb035fb3840f48a065338.zip
fix: declare variables as global when using `typeset`
Fixes fb86ec77
Diffstat (limited to 'themes/jonathan.zsh-theme')
-rw-r--r--themes/jonathan.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/jonathan.zsh-theme b/themes/jonathan.zsh-theme
index fc3cb2caa..48927f1db 100644
--- a/themes/jonathan.zsh-theme
+++ b/themes/jonathan.zsh-theme
@@ -37,8 +37,8 @@ setopt prompt_subst
# See if we can use colors.
autoload zsh/terminfo
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE GREY; do
- typeset PR_$color="%{$terminfo[bold]$fg[${(L)color}]%}"
- typeset PR_LIGHT_$color="%{$fg[${(L)color}]%}"
+ typeset -g PR_$color="%{$terminfo[bold]$fg[${(L)color}]%}"
+ typeset -g PR_LIGHT_$color="%{$fg[${(L)color}]%}"
done
PR_NO_COLOUR="%{$terminfo[sgr0]%}"