Commit 6a4fbde8d55d3498f49a86aaa981d03a88c0d3fa
1 parent
3bc0eccade
On spot theme switching works.
Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff
antigen.zsh
... | ... | @@ -188,7 +188,8 @@ bundle-load () { |
188 | 188 | # If the name ends with `.theme`, it is handled as if it were a zsh-theme |
189 | 189 | # plugin. |
190 | 190 | if [[ $name == *.theme ]]; then |
191 | - source "$bundle_dir/${name%.theme}.zsh-theme" | |
191 | + local theme_file="$bundle_dir/${name%.theme}.zsh-theme" | |
192 | + test -f "$theme_file" && source "$theme_file" | |
192 | 193 | fi |
193 | 194 | |
194 | 195 | # Add to $fpath, for completion(s) |
... | ... | @@ -206,7 +207,7 @@ bundle-lib () { |
206 | 207 | bundle-theme () { |
207 | 208 | local url="$ANTIGEN_DEFAULT_REPO_URL" |
208 | 209 | local name="${1:-robbyrussell}" |
209 | - bundle "$url" --name=$name.theme --loc=themes/$name.zsh-theme | |
210 | + bundle-install "$url" --name=$name.theme --loc=themes/$name.zsh-theme | |
210 | 211 | } |
211 | 212 | |
212 | 213 | bundle-apply () { |