From d433fac32a09926d473aa1a944ff98f674366f39 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Thu, 15 Oct 2015 19:02:19 +0800 Subject: [PATCH] Update pry again --- pry.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/pry.md b/pry.md index b15c6fac8..c3fd223bc 100644 --- a/pry.md +++ b/pry.md @@ -61,18 +61,14 @@ layout: default > hist # History > wtf? # Trace of recent exception +## Rails + ### Rails console Also consider [pry-rails](https://rubygems.org/gems/pry-rails). $ pry -r ./config/environment -### Bonus: hirb - - > table User.all - > view User.all - > view User.all, fields: %w[id name email] - ### Rails > show-models @@ -94,7 +90,7 @@ Also consider [pry-rails](https://rubygems.org/gems/pry-rails). > ls -G xx # Grey by regex -### Shell integration +## Shell integration shell-mode adds dir to the prompt. @@ -105,7 +101,14 @@ Commands with `.` are shell commands. pry(main)> .cat hello.txt -### Reference +## hirb +Add the [hirb](https://rubygems.org/gems/hirb) gem. + + > table User.all + > view User.all + > view User.all, fields: %w[id name email] + +## Reference * [Pry](https://github.com/pry/pry) * [Hirb](https://github.com/cldwalker/hirb)