summaryrefslogtreecommitdiff
path: root/plugins/chruby
diff options
context:
space:
mode:
authorStefan Wrobel <swrobel@users.noreply.github.com>2016-01-07 17:31:03 -0800
committerStefan Wrobel <swrobel@users.noreply.github.com>2016-01-07 17:31:03 -0800
commit3dfd2166faa0660cbdddf5df3cd902d9c87d3c3a (patch)
tree44b068cfc38290a097022b3bf4b5e0d703ffcb30 /plugins/chruby
parent686e46025890cba38d2cb7ad7cc229bf6beeba57 (diff)
downloadzsh-3dfd2166faa0660cbdddf5df3cd902d9c87d3c3a.tar.gz
zsh-3dfd2166faa0660cbdddf5df3cd902d9c87d3c3a.tar.bz2
zsh-3dfd2166faa0660cbdddf5df3cd902d9c87d3c3a.zip
chruby plugin locals moved inside function
Diffstat (limited to 'plugins/chruby')
-rw-r--r--plugins/chruby/chruby.plugin.zsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/chruby/chruby.plugin.zsh b/plugins/chruby/chruby.plugin.zsh
index 164b4319f..758b4a56c 100644
--- a/plugins/chruby/chruby.plugin.zsh
+++ b/plugins/chruby/chruby.plugin.zsh
@@ -16,9 +16,6 @@
# rvm and rbenv plugins also provide this alias
alias rubies='chruby'
-local _chruby_path
-local _chruby_auto
-
_homebrew-installed() {
whence brew &> /dev/null
}
@@ -42,6 +39,9 @@ if _ruby-build_installed; then
fi
_source_from_omz_settings() {
+ local _chruby_path
+ local _chruby_auto
+
zstyle -s :omz:plugins:chruby path _chruby_path
zstyle -s :omz:plugins:chruby auto _chruby_auto