diff options
author | Marc Cornellà <marc.cornella@live.com> | 2016-01-14 23:25:52 +0100 |
---|---|---|
committer | Marc Cornellà <marc.cornella@live.com> | 2016-01-14 23:25:52 +0100 |
commit | 078cd4ae2b97bf9cd08dc9455fbef80145cc5191 (patch) | |
tree | 5d18830edd1da8cdc6b3f6714126aed68b72c651 /plugins | |
parent | 9df79bc21ae2ea681e0528e8bb173dd12cb13ea3 (diff) | |
parent | 3dfd2166faa0660cbdddf5df3cd902d9c87d3c3a (diff) | |
download | zsh-078cd4ae2b97bf9cd08dc9455fbef80145cc5191.tar.gz zsh-078cd4ae2b97bf9cd08dc9455fbef80145cc5191.tar.bz2 zsh-078cd4ae2b97bf9cd08dc9455fbef80145cc5191.zip |
Merge pull request #4759 from swrobel/patch-1
chruby plugin locals moved inside function
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/chruby/chruby.plugin.zsh | 6 |
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 |