Sha256: 55e0b74a3db95ff53217882951daeecb27c2cc211291a492b48c9becbfbf4748
Contents?: true
Size: 800 Bytes
Versions: 8
Compression:
Stored size: 800 Bytes
Contents
require 'rib' module Rib::Completion include Rib::Plugin Shell.use(self) # --------------- Rib API --------------- def before_loop return super if Completion.disabled? config[:completion] ||= {} config[:completion][:eval_binding] ||= method(:eval_binding).to_proc (config[:completion][:gems] ||= []).concat(ripl_plugins) Rib.silence{Bond.start(config[:completion]) unless Bond.started?} super end private def ripl_plugins $LOADED_FEATURES.map{ |e| e[/ripl\/[^\/]+$/] }.compact end end begin Rib.silence{require 'bond'} rescue LoadError Rib.warn("Please install bond to use completion plugin:\n", " gem install bond\n", "Or add bond to Gemfile if that's the case") Rib::Completion.disable end
Version data entries
8 entries across 8 versions & 1 rubygems