class DEBUGGER__::Client
def setup_autoload
def setup_autoload prelude_path = File.join(__dir__, 'prelude.rb') case shell = working_shell_type when :bash, :zsh puts <<~EOS # add the following lines in your ~/.#{shell}_profile if test -s #{prelude_path} ; then export RUBYOPT='-r #{prelude_path}' fi # Add `Kernel#bb` method which is alias of `Kernel#debugger` # export RUBY_DEBUG_BB=1 EOS when :fish puts <<~EOS # add the following lines in your ~/.config/fish/config.fish set -x RUBYOPT "-r #{__dir__}/prelude" $RUBYOPT EOS else puts "# Sorry that your shell is not supported yet.", "# Please use the content in #{prelude_path} as a reference and modify your login script accordingly." end end