[ruby] use pry prompt api

pull/33/head
Alpha Chen 4 years ago
parent d2994e2217
commit 3db895d99f

@ -1,9 +1,8 @@
Pry.config.editor = 'vim'
Pry.prompt = [
proc { |target, _, _| "(#{Pry.view_clip(target)})> " },
proc { |target, _, _| "(#{Pry.view_clip(target)})| " },
]
Pry::Prompt.add :kejadlen, nil, %w[ > | ] do |_, _, _, sep|
"(#{Pry.view_clip(target)})#{sep} "
end
begin
require 'pry-byebug'

Loading…
Cancel
Save