mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 11:26:41 +00:00
Add .pryrc dotfile
This commit is contained in:
@@ -25,6 +25,7 @@ SYMLINKS=(
|
|||||||
irbrc
|
irbrc
|
||||||
peco
|
peco
|
||||||
powconfig
|
powconfig
|
||||||
|
pryrc
|
||||||
reek
|
reek
|
||||||
rspec
|
rspec
|
||||||
rubocop.yml
|
rubocop.yml
|
||||||
|
|||||||
11
pryrc
Normal file
11
pryrc
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
if defined?(PryByebug)
|
||||||
|
Pry.commands.alias_command 'c', 'continue'
|
||||||
|
Pry.commands.alias_command 's', 'step'
|
||||||
|
Pry.commands.alias_command 'n', 'next'
|
||||||
|
Pry.commands.alias_command 'f', 'finish'
|
||||||
|
|
||||||
|
# Hit Enter to repeat last command
|
||||||
|
Pry::Commands.command /^$/, 'repeat last command' do
|
||||||
|
_pry_.run_command Pry.history.to_a.last
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user