Created
June 18, 2018 17:19
-
-
Save JoshCheek/9778c419fd5fb3610721571fc611dca9 to your computer and use it in GitHub Desktop.
Uhm, guessing at the prompt in the pry video
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on this: https://github.com/pry/pry/blob/782a09e057d1e714074d61891a5fba293eb9faca/lib/pry.rb#L54-L63 | |
# And intended to reproduce the prompt in this: https://vimeo.com/26391171 | |
Pry.config.prompt = [ | |
proc { |target_self, nest_level, pry| | |
"\e[45m#{pry.config.prompt_name}(#{Pry.view_clip(target_self)})#{":#{nest_level}"}>\e[0m " | |
}, | |
proc { |target_self, nest_level, pry| | |
"\e[45m#{pry.config.prompt_name}(#{Pry.view_clip(target_self)})#{":#{nest_level}"}*\e[0m " | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment