Skip to content

Commit

Permalink
Merge pull request #108 from r-obert/update-docs
Browse files Browse the repository at this point in the history
Update the readme documentation
  • Loading branch information
rf- authored Dec 1, 2018
2 parents e2f547e + 4e8e66d commit a6c67b9
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,25 @@ irb(main):001:0>

## Custom Rails prompt

If you want to include the current Rails environment and project name in the pry prompt, put the following lines in your project's `.pryrc`:
If you want to permanently include the current Rails environment and project name
in the Pry prompt, put the following lines in your project's `.pryrc`:

```ruby
if defined?(PryRails::RAILS_PROMPT)
Pry.config.prompt = PryRails::RAILS_PROMPT
Pry.config.prompt = Pry::Prompt[:rails][:value]
```

If `.pryrc` could be loaded without pry-rails being available or installed,
guard against setting `Pry.config.prompt` to `nil`:

```ruby
if Pry::Prompt[:rails]
Pry.config.prompt = Pry::Prompt[:rails][:value]
end
```

Check out `change-prompt --help` for information about temporarily
changing the prompt for the current Pry session.

# Developing and Testing

This repo uses [Roadshow] to generate a [Docker Compose] file for each
Expand Down

0 comments on commit a6c67b9

Please sign in to comment.