Skip to content

Instantly share code, notes, and snippets.

@JoshCheek
Created June 18, 2018 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshCheek/9778c419fd5fb3610721571fc611dca9 to your computer and use it in GitHub Desktop.
Save JoshCheek/9778c419fd5fb3610721571fc611dca9 to your computer and use it in GitHub Desktop.
Uhm, guessing at the prompt in the pry video
# 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