Sha256: b5cdb6dbe2af77ff59548ca4173067f24c551cd1b34ad90d5c0fae97997e57bb

Contents?: true

Size: 711 Bytes

Versions: 1

Compression:

Stored size: 711 Bytes

Contents

require 'binding_of_caller'
require 'clipboard'

# HACK: for ap 可以确保,当使用 irb! 时,looksee ls1 输出显示正确,同时不用关闭 irb :USE_COLORIZE 设置。
# See https://github.com/oggy/looksee/issues/57
# 但是,ap_hack 必须放到 break_hack 前面,调换顺序,上面的 hack 失效。
# WARN: 下面两行 require 代码顺序不要换。
require 'awesome_print'

# AwesomePrint.defaults = {
#   index: false
# }

if defined? AwesomePrint
  if defined? Pry
    AwesomePrint.pry!
  else
    AwesomePrint.irb!
  end
end

require 'break'
Pry.commands.alias_command 'n', 'next'
Pry.commands.alias_command 's', 'step'
Pry.commands.alias_command 'w', 'watch' # watch is pry builtin

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pryx-0.8.1 lib/pryx/common_plugins.rb