Skip to content

Commit 151ce46

Browse files
committed
Merge pull request nixme#37 from arnab/readme-tweaks
Use debugger aliases only when pry-debugger is available.
2 parents 77e1c04 + 9c50db3 commit 151ce46

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,12 @@ Using Pry with Rails? Check out [Jazz Hands][jazz_hands].
116116
Stepping through code often? Add the following shortcuts to `~/.pryrc`:
117117

118118
```ruby
119-
Pry.commands.alias_command 'c', 'continue'
120-
Pry.commands.alias_command 's', 'step'
121-
Pry.commands.alias_command 'n', 'next'
122-
Pry.commands.alias_command 'f', 'finish'
119+
if defined?(PryDebugger)
120+
Pry.commands.alias_command 'c', 'continue'
121+
Pry.commands.alias_command 's', 'step'
122+
Pry.commands.alias_command 'n', 'next'
123+
Pry.commands.alias_command 'f', 'finish'
124+
end
123125
```
124126

125127

0 commit comments

Comments
 (0)