3dfd2166faa0660cbdddf5df3cd902d9c87d3c3a

Author
Stefan Wrobel <swrobel@users.noreply.github.com>
Committer
Stefan Wrobel <swrobel@users.noreply.github.com>
Date

Message

chruby plugin locals moved inside function

Diff

 1diff --git a/plugins/chruby/chruby.plugin.zsh b/plugins/chruby/chruby.plugin.zsh
 2index 164b4319f34c402dfd5054e2e06060ed29fcad0f..758b4a56c0aee1081e7acc18694bd8c9408ad082 100644
 3--- a/plugins/chruby/chruby.plugin.zsh
 4+++ b/plugins/chruby/chruby.plugin.zsh
 5@@ -16,9 +16,6 @@
 6 # rvm and rbenv plugins also provide this alias
 7 alias rubies='chruby'
 8 
 9-local _chruby_path
10-local _chruby_auto
11-
12 _homebrew-installed() {
13     whence brew &> /dev/null
14 }
15@@ -42,6 +39,9 @@ if _ruby-build_installed; then
16 fi
17 
18 _source_from_omz_settings() {
19+    local _chruby_path
20+    local _chruby_auto
21+    
22     zstyle -s :omz:plugins:chruby path _chruby_path
23     zstyle -s :omz:plugins:chruby auto _chruby_auto
24