Diff
1diff --git a/plugins/dirhistory/dirhistory.plugin.zsh b/plugins/dirhistory/dirhistory.plugin.zsh
2index 2f5a797353f3308bb9c6d1aa97b7e5ece1e7afa5..8268147f620da16f2654907e4f553c6c8c0c3d7b 100644
3--- a/plugins/dirhistory/dirhistory.plugin.zsh
4+++ b/plugins/dirhistory/dirhistory.plugin.zsh
5@@ -19,14 +19,14 @@ export DIRHISTORY_SIZE=30
6 # Returns the element if the array was not empty,
7 # otherwise returns empty string.
8 function pop_past() {
9- typeset $1="${dirhistory_past[$#dirhistory_past]}"
10+ typeset -g $1="${dirhistory_past[$#dirhistory_past]}"
11 if [[ $#dirhistory_past -gt 0 ]]; then
12 dirhistory_past[$#dirhistory_past]=()
13 fi
14 }
15
16 function pop_future() {
17- typeset $1="${dirhistory_future[$#dirhistory_future]}"
18+ typeset -g $1="${dirhistory_future[$#dirhistory_future]}"
19 if [[ $#dirhistory_future -gt 0 ]]; then
20 dirhistory_future[$#dirhistory_future]=()
21 fi
22diff --git a/themes/adben.zsh-theme b/themes/adben.zsh-theme
23index a11f7b0a9a9dbddb26e946a9fa259cee46cd668b..c2fdbed2387f96665e2d6ffcf6662f2e33d03e79 100644
24--- a/themes/adben.zsh-theme
25+++ b/themes/adben.zsh-theme
26@@ -32,8 +32,8 @@
27
28 ########## COLOR ###########
29 for COLOR in CYAN WHITE YELLOW MAGENTA BLACK BLUE RED DEFAULT GREEN GREY; do
30- typeset PR_$COLOR="%b%{$fg[${(L)COLOR}]%}"
31- typeset PR_BRIGHT_$COLOR="%B%{$fg[${(L)COLOR}]%}"
32+ typeset -g PR_$COLOR="%b%{$fg[${(L)COLOR}]%}"
33+ typeset -g PR_BRIGHT_$COLOR="%B%{$fg[${(L)COLOR}]%}"
34 done
35 PR_RESET="%{$reset_color%}"
36
37diff --git a/themes/jonathan.zsh-theme b/themes/jonathan.zsh-theme
38index fc3cb2caa5b85a9f945816fa5b831f28b5143783..48927f1db4d19d8126688b5ef950ca071a8f2605 100644
39--- a/themes/jonathan.zsh-theme
40+++ b/themes/jonathan.zsh-theme
41@@ -37,8 +37,8 @@ setopt prompt_subst
42 # See if we can use colors.
43 autoload zsh/terminfo
44 for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE GREY; do
45- typeset PR_$color="%{$terminfo[bold]$fg[${(L)color}]%}"
46- typeset PR_LIGHT_$color="%{$fg[${(L)color}]%}"
47+ typeset -g PR_$color="%{$terminfo[bold]$fg[${(L)color}]%}"
48+ typeset -g PR_LIGHT_$color="%{$fg[${(L)color}]%}"
49 done
50 PR_NO_COLOUR="%{$terminfo[sgr0]%}"
51
52diff --git a/themes/simonoff.zsh-theme b/themes/simonoff.zsh-theme
53index c7e35e160edf189be097e337acef63a8ce79bfb8..287781d9e9ee14abef621648e16af6665638103a 100644
54--- a/themes/simonoff.zsh-theme
55+++ b/themes/simonoff.zsh-theme
56@@ -45,8 +45,8 @@ setopt prompt_subst
57 # See if we can use colors.
58 autoload zsh/terminfo
59 for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE GREY; do
60- typeset PR_$color="%{$terminfo[bold]$fg[${(L)color}]%}"
61- typeset PR_LIGHT_$color="%{$fg[${(L)color}]%}"
62+ typeset -g PR_$color="%{$terminfo[bold]$fg[${(L)color}]%}"
63+ typeset -g PR_LIGHT_$color="%{$fg[${(L)color}]%}"
64 done
65 PR_NO_COLOUR="%{$terminfo[sgr0]%}"
66